Searched refs:max_optlen (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/kernel/bpf/ |
D | cgroup.c | 1742 static int sockopt_alloc_buf(struct bpf_sockopt_kern *ctx, int max_optlen, in sockopt_alloc_buf() argument 1745 if (unlikely(max_optlen < 0)) in sockopt_alloc_buf() 1748 if (unlikely(max_optlen > PAGE_SIZE)) { in sockopt_alloc_buf() 1752 max_optlen = PAGE_SIZE; in sockopt_alloc_buf() 1755 if (max_optlen <= sizeof(buf->data)) { in sockopt_alloc_buf() 1760 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf() 1761 return max_optlen; in sockopt_alloc_buf() 1764 ctx->optval = kzalloc(max_optlen, GFP_USER); in sockopt_alloc_buf() 1768 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf() 1770 return max_optlen; in sockopt_alloc_buf() [all …]
|
/linux-6.1.9/include/linux/ |
D | bpf-cgroup.h | 144 int __user *optlen, int max_optlen, 385 max_optlen, retval) \ argument 396 max_optlen, retval); \ 503 optlen, max_optlen, retval) ({ retval; }) argument
|
/linux-6.1.9/net/ |
D | socket.c | 2278 int max_optlen; in __sys_getsockopt() local 2289 max_optlen = BPF_CGROUP_GETSOCKOPT_MAX_OPTLEN(optlen); in __sys_getsockopt() 2301 optval, optlen, max_optlen, in __sys_getsockopt()
|