Lines Matching refs:path_fd
2963 #define BPF_OBJ_LAST_FIELD path_fd
2967 int path_fd;
2972 /* path_fd has to be accompanied by BPF_F_PATH_FD flag */
2973 if (!(attr->file_flags & BPF_F_PATH_FD) && attr->path_fd)
2976 path_fd = attr->file_flags & BPF_F_PATH_FD ? attr->path_fd : AT_FDCWD;
2977 return bpf_obj_pin_user(attr->bpf_fd, path_fd,
2983 int path_fd;
2989 /* path_fd has to be accompanied by BPF_F_PATH_FD flag */
2990 if (!(attr->file_flags & BPF_F_PATH_FD) && attr->path_fd)
2993 path_fd = attr->file_flags & BPF_F_PATH_FD ? attr->path_fd : AT_FDCWD;
2994 return bpf_obj_get_user(path_fd, u64_to_user_ptr(attr->pathname),