Home
last modified time | relevance | path

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

/kernel/bpf/
Dcgroup.c1742 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 …]