Searched refs:bpffs_fd (Results 1 - 8 of 8) sorted by relevance
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | token.c | 283 typedef int (*child_callback_fn)(int bpffs_fd, struct token_lsm *lsm_skel); 287 int mnt_fd = -1, fs_fd = -1, err = 0, bpffs_fd = -1, token_fd = -1; local 374 bpffs_fd = openat(mnt_fd, ".", 0, O_RDWR); 375 if (!ASSERT_GE(bpffs_fd, 0, "bpffs_open")) { 381 token_fd = bpf_token_create(bpffs_fd, NULL); 392 err = callback(bpffs_fd, lsm_skel); 401 zclose(bpffs_fd);
|
/linux-master/kernel/bpf/ |
H A D | token.c | 124 f = fdget(attr->token_create.bpffs_fd);
|
H A D | syscall.c | 5607 #define BPF_TOKEN_CREATE_LAST_FIELD token_create.bpffs_fd
|
/linux-master/tools/lib/bpf/ |
H A D | bpf.h | 684 * @param bpffs_fd FD for BPF FS instance from which to derive a BPF token 691 LIBBPF_API int bpf_token_create(int bpffs_fd,
|
H A D | bpf.c | 1302 int bpf_token_create(int bpffs_fd, struct bpf_token_create_opts *opts) argument 1312 attr.token_create.bpffs_fd = bpffs_fd;
|
H A D | libbpf.c | 4840 int bpffs_fd = -1, token_fd, err; local 4854 bpffs_fd = open(bpffs_path, O_DIRECTORY, O_RDWR); 4855 if (bpffs_fd < 0) { 4863 token_fd = bpf_token_create(bpffs_fd, 0); 4864 close(bpffs_fd);
|
/linux-master/include/uapi/linux/ |
H A D | bpf.h | 1817 __u32 bpffs_fd; member in struct:bpf_attr::__anon2630
|
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 1817 __u32 bpffs_fd; member in struct:bpf_attr::__anon3171
|
Completed in 229 milliseconds