Searched refs:path_fd (Results 1 - 8 of 8) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_obj_pinning.c81 pin_opts.path_fd = mnt_fd;
88 get_opts.path_fd = mnt_fd;
148 pin_opts.path_fd = open("/sys/fs/bpf", O_PATH);
149 ASSERT_GE(pin_opts.path_fd, 0, "path_fd");
159 if (path_kind == PATH_FD_REL && pin_opts.path_fd >= 0)
160 close(pin_opts.path_fd);
213 get_opts.path_fd = open("/sys/fs/bpf", O_PATH);
214 ASSERT_GE(get_opts.path_fd, 0, "path_fd");
[all...]
/linux-master/tools/lib/bpf/
H A Dbpf.h306 int path_fd; member in struct:bpf_obj_pin_opts
310 #define bpf_obj_pin_opts__last_field path_fd
320 int path_fd; member in struct:bpf_obj_get_opts
324 #define bpf_obj_get_opts__last_field path_fd
H A Dbpf.c584 const size_t attr_sz = offsetofend(union bpf_attr, path_fd);
592 attr.path_fd = OPTS_GET(opts, path_fd, 0);
613 const size_t attr_sz = offsetofend(union bpf_attr, path_fd);
621 attr.path_fd = OPTS_GET(opts, path_fd, 0);
/linux-master/kernel/bpf/
H A Dinode.c436 static int bpf_obj_do_pin(int path_fd, const char __user *pathname, void *raw, argument
445 dentry = user_path_create(path_fd, pathname, &path, 0);
478 int bpf_obj_pin_user(u32 ufd, int path_fd, const char __user *pathname) argument
488 ret = bpf_obj_do_pin(path_fd, pathname, raw, type);
495 static void *bpf_obj_do_get(int path_fd, const char __user *pathname, argument
503 ret = user_path_at(path_fd, pathname, LOOKUP_FOLLOW, &path);
527 int bpf_obj_get_user(int path_fd, const char __user *pathname, int flags) argument
538 raw = bpf_obj_do_get(path_fd, pathname, &type, f_flags);
H A Dsyscall.c2950 #define BPF_OBJ_LAST_FIELD path_fd
2954 int path_fd; local
2959 /* path_fd has to be accompanied by BPF_F_PATH_FD flag */
2960 if (!(attr->file_flags & BPF_F_PATH_FD) && attr->path_fd)
2963 path_fd = attr->file_flags & BPF_F_PATH_FD ? attr->path_fd : AT_FDCWD;
2964 return bpf_obj_pin_user(attr->bpf_fd, path_fd,
2970 int path_fd; local
2976 /* path_fd has to be accompanied by BPF_F_PATH_FD flag */
2977 if (!(attr->file_flags & BPF_F_PATH_FD) && attr->path_fd)
[all...]
/linux-master/include/linux/
H A Dbpf.h2352 int bpf_obj_pin_user(u32 ufd, int path_fd, const char __user *pathname);
2353 int bpf_obj_get_user(int path_fd, const char __user *pathname, int flags);
/linux-master/include/uapi/linux/
H A Dbpf.h1576 * path_fd should accompanied by BPF_F_PATH_FD flag set in
1580 __s32 path_fd; member in struct:bpf_attr::__anon2595
/linux-master/tools/include/uapi/linux/
H A Dbpf.h1576 * path_fd should accompanied by BPF_F_PATH_FD flag set in
1580 __s32 path_fd; member in struct:bpf_attr::__anon3136

Completed in 555 milliseconds