/linux-master/kernel/bpf/ |
H A D | map_in_map.h | 15 int ufd);
|
H A D | map_in_map.c | 110 int ufd) 115 f = fdget(ufd); 108 bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file , int ufd) argument
|
H A D | token.c | 233 struct bpf_token *bpf_token_get_from_fd(u32 ufd) argument 235 struct fd f = fdget(ufd);
|
H A D | inode.c | 71 static void *bpf_fd_probe_obj(u32 ufd, enum bpf_type *type) argument 75 raw = bpf_map_get_with_uref(ufd); 81 raw = bpf_prog_get(ufd); 87 raw = bpf_link_get_from_fd(ufd); 478 int bpf_obj_pin_user(u32 ufd, int path_fd, const char __user *pathname) argument 484 raw = bpf_fd_probe_obj(ufd, &type);
|
H A D | syscall.c | 1449 struct bpf_map *bpf_map_get(u32 ufd) argument 1451 struct fd f = fdget(ufd); 1465 struct bpf_map *bpf_map_get_with_uref(u32 ufd) argument 1467 struct fd f = fdget(ufd); 1540 int ufd = attr->map_fd; local 1553 f = fdget(ufd); 1615 int ufd = attr->map_fd; local 1625 f = fdget(ufd); 1672 int ufd = attr->map_fd; local 1681 f = fdget(ufd); 1729 int ufd = attr->map_fd; local 2014 int ufd = attr->map_fd; local 2105 int err = 0, ufd = attr->map_fd; local 2474 __bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, bool attach_drv) argument 2494 bpf_prog_get(u32 ufd) argument 2499 bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, bool attach_drv) argument 3235 bpf_link_get_from_fd(u32 ufd) argument 4955 int ufd = attr->info.bpf_fd; local 5169 int err, ufd; local [all...] |
/linux-master/fs/ |
H A D | signalfd.c | 251 static int do_signalfd4(int ufd, sigset_t *mask, int flags) argument 265 if (ufd == -1) { 274 ufd = get_unused_fd_flags(flags & O_CLOEXEC); 275 if (ufd < 0) { 277 return ufd; 283 put_unused_fd(ufd); 289 fd_install(ufd, file); 291 struct fd f = fdget(ufd); 307 return ufd; 310 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_ 335 do_compat_signalfd4(int ufd, const compat_sigset_t __user *user_mask, compat_size_t sigsetsize, int flags) argument [all...] |
H A D | timerfd.c | 412 int ufd; local 451 ufd = get_unused_fd_flags(flags & TFD_SHARED_FCNTL_FLAGS); 452 if (ufd < 0) { 454 return ufd; 460 put_unused_fd(ufd); 466 fd_install(ufd, file); 467 return ufd; 470 static int do_timerfd_settime(int ufd, int flags, argument 482 ret = timerfd_fget(ufd, &f); 542 static int do_timerfd_gettime(int ufd, struc argument [all...] |
H A D | file.c | 1298 * @ufd: __user pointer to write new fd number to 1303 * @ufd is non-NULL. 1310 int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags) argument 1323 if (ufd) { 1324 error = put_user(new_fd, ufd);
|
/linux-master/tools/testing/selftests/thermal/intel/power_floor/ |
H A D | power_floor_test.c | 40 struct pollfd ufd; local 85 ufd.fd = fd; 86 ufd.events = POLLPRI; 88 ret = poll(&ufd, 1, -1);
|
/linux-master/tools/testing/selftests/mm/ |
H A D | uffd-common.h | 120 int uffd_read_msg(int ufd, struct uffd_msg *msg); 121 void wp_range(int ufd, __u64 start, __u64 len, bool wp); 123 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp); 124 int copy_page(int ufd, unsigned long offset, bool wp); 125 int move_page(int ufd, unsigned long offset, unsigned long len);
|
H A D | uffd-common.c | 378 void wp_range(int ufd, __u64 start, __u64 len, bool wp) argument 388 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) 392 static void continue_range(int ufd, __u64 start, __u64 len, bool wp) argument 403 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) 413 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); 419 int uffd_read_msg(int ufd, struct uffd_msg *msg) argument 551 uffd = msg.arg.fork.ufd; 571 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, argument 577 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { 588 static void wake_range(int ufd, unsigne argument 600 __copy_page(int ufd, unsigned long offset, bool retry, bool wp) argument 632 copy_page(int ufd, unsigned long offset, bool wp) argument 637 move_page(int ufd, unsigned long offset, unsigned long len) argument [all...] |
H A D | uffd-stress.c | 123 static int copy_page_retry(int ufd, unsigned long offset) argument 125 return __copy_page(ufd, offset, true, test_uffdio_wp);
|
H A D | uffd-unit-tests.c | 252 args->child_uffd = msg.arg.fork.ufd; 882 static void retry_uffdio_zeropage(int ufd, argument 888 if (ioctl(ufd, UFFDIO_ZEROPAGE, uffdio_zeropage)) { 898 static bool do_uffdio_zeropage(int ufd, bool has_zeropage) argument 907 ret = ioctl(ufd, UFFDIO_ZEROPAGE, &uffdio_zeropage); 919 retry_uffdio_zeropage(ufd, &uffdio_zeropage);
|
/linux-master/tools/testing/selftests/thermal/intel/workload_hint/ |
H A D | workload_hint_test.c | 51 struct pollfd ufd; local 128 ufd.fd = fd; 129 ufd.events = POLLPRI; 131 ret = poll(&ufd, 1, -1);
|
/linux-master/tools/perf/util/ |
H A D | probe-file.h | 42 int probe_file__open_both(int *kfd, int *ufd, int flag);
|
H A D | probe-file.c | 152 int probe_file__open_both(int *kfd, int *ufd, int flag) argument 154 if (!kfd || !ufd) 158 *ufd = open_uprobe_events(flag & PF_FL_RW); 159 if (*kfd < 0 && *ufd < 0) { 160 print_both_open_warning(*kfd, *ufd, flag & PF_FL_RW);
|
/linux-master/arch/parisc/kernel/ |
H A D | sys_parisc.c | 337 asmlinkage long parisc_signalfd4(int ufd, sigset_t __user *user_mask, argument 341 return sys_signalfd4(ufd, user_mask, sizemask, flags); 345 asmlinkage long parisc_compat_signalfd4(int ufd, argument 350 return compat_sys_signalfd4(ufd, user_mask, sizemask, flags);
|
/linux-master/include/net/ |
H A D | scm.h | 223 static inline int scm_recv_one_fd(struct file *f, int __user *ufd, argument 226 if (!ufd) 228 return receive_fd(f, ufd, flags);
|
/linux-master/tools/perf/ |
H A D | builtin-probe.c | 443 int ret, ret2, ufd = -1, kfd = -1; local 457 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); 479 ret2 = probe_file__get_events(ufd, filter, ulist); 484 ret2 = probe_file__del_strlist(ufd, ulist); 498 if (ufd >= 0) 499 close(ufd);
|
/linux-master/include/linux/ |
H A D | file.h | 102 int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags);
|
H A D | bpf.h | 2204 struct bpf_prog *bpf_prog_get(u32 ufd); 2205 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, 2227 struct bpf_map *bpf_map_get(u32 ufd); 2228 struct bpf_map *bpf_map_get_with_uref(u32 ufd); 2338 struct bpf_link *bpf_link_get_from_fd(u32 ufd); 2344 struct bpf_token *bpf_token_get_from_fd(u32 ufd); 2352 int bpf_obj_pin_user(u32 ufd, int path_fd, const char __user *pathname); 2648 static inline struct bpf_prog *bpf_prog_get(u32 ufd) argument 2653 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, argument 2729 static inline struct bpf_token *bpf_token_get_from_fd(u32 ufd) argument 2932 bpf_prog_get_type(u32 ufd, enum bpf_prog_type type) argument [all...] |
/linux-master/include/uapi/linux/ |
H A D | userfaultfd.h | 125 __u32 ufd; member in struct:uffd_msg::__anon644::__anon647
|
/linux-master/tools/include/uapi/linux/ |
H A D | userfaultfd.h | 125 __u32 ufd; member in struct:uffd_msg::__anon607::__anon610
|
/linux-master/net/core/ |
H A D | sock_map.c | 70 u32 ufd = attr->target_fd; local 78 f = fdget(ufd); 91 u32 ufd = attr->target_fd; local 100 f = fdget(ufd); 565 u64 ufd; local 568 ufd = *(u64 *)value; 570 ufd = *(u32 *)value; 571 if (ufd > S32_MAX) 574 sock = sockfd_lookup(ufd, &ret); 1553 u32 prog_cnt = 0, flags = 0, ufd local [all...] |
/linux-master/tools/tracing/latency/ |
H A D | latency-collector.c | 1639 int ufd; local 1641 ufd = open(DEV_URANDOM, O_RDONLY); 1650 if (ufd < 0 || 1651 read(ufd, seed, sizeof(*seed)) != sizeof(*seed)) { 1663 if (ufd > 0 && close(ufd) != 0)
|