Searched refs:cur_len (Results 1 – 2 of 2) sorted by relevance
/kernel/bpf/ |
D | helpers.c | 421 size_t cur_len = buf_len; in __bpf_strtoull() local 443 cur_len -= consumed; in __bpf_strtoull() 444 if (!cur_len) in __bpf_strtoull() 447 cur_len = min(cur_len, sizeof(str) - 1); in __bpf_strtoull() 448 memcpy(str, cur_buf, cur_len); in __bpf_strtoull() 449 str[cur_len] = '\0'; in __bpf_strtoull()
|
D | cgroup.c | 1290 .cur_len = PAGE_SIZE, in __cgroup_bpf_run_filter_sysctl() 1299 ctx.cur_val = kmalloc_track_caller(ctx.cur_len, GFP_KERNEL); in __cgroup_bpf_run_filter_sysctl() 1301 table->proc_handler(table, 0, ctx.cur_val, &ctx.cur_len, &pos)) { in __cgroup_bpf_run_filter_sysctl() 1303 ctx.cur_len = 0; in __cgroup_bpf_run_filter_sysctl() 1642 return copy_sysctl_value(buf, buf_len, ctx->cur_val, ctx->cur_len); in BPF_CALL_3()
|