Searched refs:fd_array_cnt (Results 1 – 8 of 8) sorted by relevance
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fd_array.c | 98 static int __load_test_prog(int map_fd, const int *fd_array, int fd_array_cnt) in __load_test_prog() argument 113 opts.fd_array_cnt = fd_array_cnt; in __load_test_prog() 118 static int load_test_prog(const int *fd_array, int fd_array_cnt) in load_test_prog() argument 127 ret = __load_test_prog(map_fd, fd_array, fd_array_cnt); in load_test_prog()
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | bpf.h | 112 __u32 fd_array_cnt; member 115 #define bpf_prog_load_opts__last_field fd_array_cnt
|
| H A D | bpf.c | 241 const size_t attr_sz = offsetofend(union bpf_attr, fd_array_cnt); in bpf_prog_load() 314 attr.fd_array_cnt = OPTS_GET(opts, fd_array_cnt, 0); in bpf_prog_load()
|
| H A D | libbpf.c | 732 size_t fd_array_cnt; member 8347 if (obj->fd_array_cnt == INT16_MAX) { in bpf_object__resolve_ksym_func_btf_id() 8353 if (!obj->fd_array_cnt) in bpf_object__resolve_ksym_func_btf_id() 8354 obj->fd_array_cnt = 1; in bpf_object__resolve_ksym_func_btf_id() 8357 obj->fd_array_cnt + 1); in bpf_object__resolve_ksym_func_btf_id() 8360 mod_btf->fd_array_idx = obj->fd_array_cnt; in bpf_object__resolve_ksym_func_btf_id() 8362 obj->fd_array[obj->fd_array_cnt++] = mod_btf->fd; in bpf_object__resolve_ksym_func_btf_id()
|
| /linux-6.15/tools/include/uapi/linux/ |
| H A D | bpf.h | 1589 __u32 fd_array_cnt; member
|
| /linux-6.15/include/uapi/linux/ |
| H A D | bpf.h | 1589 __u32 fd_array_cnt; member
|
| /linux-6.15/kernel/bpf/ |
| H A D | verifier.c | 23587 if (!attr->fd_array_cnt) in process_fd_array() 23591 if (attr->fd_array_cnt >= (U32_MAX / size)) { in process_fd_array() 23592 verbose(env, "fd_array_cnt is too big (%u)\n", attr->fd_array_cnt); in process_fd_array() 23596 for (i = 0; i < attr->fd_array_cnt; i++) { in process_fd_array()
|
| H A D | syscall.c | 2757 #define BPF_PROG_LOAD_LAST_FIELD fd_array_cnt
|