Searched refs:max_optlen (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/kernel/bpf/ |
H A D | cgroup.c | 1773 static int sockopt_alloc_buf(struct bpf_sockopt_kern *ctx, int max_optlen, in sockopt_alloc_buf() argument 1776 if (unlikely(max_optlen < 0)) in sockopt_alloc_buf() 1779 if (unlikely(max_optlen > PAGE_SIZE)) { in sockopt_alloc_buf() 1783 max_optlen = PAGE_SIZE; in sockopt_alloc_buf() 1786 if (max_optlen <= sizeof(buf->data)) { in sockopt_alloc_buf() 1791 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf() 1792 return max_optlen; in sockopt_alloc_buf() 1795 ctx->optval = kzalloc(max_optlen, GFP_USER); in sockopt_alloc_buf() 1799 ctx->optval_end = ctx->optval + max_optlen; in sockopt_alloc_buf() 1801 return max_optlen; in sockopt_alloc_buf() [all …]
|
/openbmc/linux/include/linux/ |
H A D | bpf-cgroup.h | 146 sockptr_t optlen, int max_optlen, 379 max_optlen, retval) \ argument 390 max_optlen, retval); \ 496 optlen, max_optlen, retval) ({ retval; }) argument
|
/openbmc/linux/net/ |
H A D | socket.c | 2363 int max_optlen __maybe_unused = 0; in do_sock_getsockopt() 2372 copy_from_sockptr(&max_optlen, optlen, sizeof(int)); in do_sock_getsockopt() 2390 optval, optlen, max_optlen, in do_sock_getsockopt()
|