Home
last modified time | relevance | path

Searched refs:max_optlen (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/kernel/bpf/
Dcgroup.c1743 static int sockopt_alloc_buf(struct bpf_sockopt_kern *ctx, int max_optlen, in sockopt_alloc_buf() argument
1746 if (unlikely(max_optlen < 0)) in sockopt_alloc_buf()
1749 if (unlikely(max_optlen > PAGE_SIZE)) { in sockopt_alloc_buf()
1753 max_optlen = PAGE_SIZE; in sockopt_alloc_buf()
1756 if (max_optlen <= sizeof(buf->data)) { in sockopt_alloc_buf()
1761 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1762 return max_optlen; in sockopt_alloc_buf()
1765 ctx->optval = kzalloc(max_optlen, GFP_USER); in sockopt_alloc_buf()
1769 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf()
1771 return max_optlen; in sockopt_alloc_buf()
[all …]
/Linux-v6.6/include/linux/
Dbpf-cgroup.h144 int __user *optlen, int max_optlen,
385 max_optlen, retval) \ argument
396 max_optlen, retval); \
503 optlen, max_optlen, retval) ({ retval; }) argument
/Linux-v6.6/net/
Dsocket.c2349 int max_optlen __maybe_unused; in __sys_getsockopt()
2363 max_optlen = BPF_CGROUP_GETSOCKOPT_MAX_OPTLEN(optlen); in __sys_getsockopt()
2376 optval, optlen, max_optlen, in __sys_getsockopt()