/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 | 1436 struct bpf_map *bpf_map_get(u32 ufd) argument 1438 struct fd f = fdget(ufd); 1452 struct bpf_map *bpf_map_get_with_uref(u32 ufd) argument 1454 struct fd f = fdget(ufd); 1527 int ufd = attr->map_fd; local 1540 f = fdget(ufd); 1602 int ufd = attr->map_fd; local 1612 f = fdget(ufd); 1659 int ufd = attr->map_fd; local 1668 f = fdget(ufd); 1716 int ufd = attr->map_fd; local 2001 int ufd = attr->map_fd; local 2092 int err = 0, ufd = attr->map_fd; local 2461 __bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, bool attach_drv) argument 2481 bpf_prog_get(u32 ufd) argument 2486 bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, bool attach_drv) argument 3222 bpf_link_get_from_fd(u32 ufd) argument 4933 int ufd = attr->info.bpf_fd; local 5147 int err, ufd; local [all...] |
/linux-master/fs/ |
H A D | signalfd.c | 253 static int do_signalfd4(int ufd, sigset_t *mask, int flags) argument 267 if (ufd == -1) { 278 ufd = anon_inode_getfd("[signalfd]", &signalfd_fops, ctx, 280 if (ufd < 0) 283 struct fd f = fdget(ufd); 299 return ufd; 302 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, 311 return do_signalfd4(ufd, &mask, flags); 314 SYSCALL_DEFINE3(signalfd, int, ufd, sigset_t __user *, user_mask, 323 return do_signalfd4(ufd, 327 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 | 408 int ufd; local 446 ufd = anon_inode_getfd("[timerfd]", &timerfd_fops, ctx, 448 if (ufd < 0) 451 return ufd; 454 static int do_timerfd_settime(int ufd, int flags, argument 466 ret = timerfd_fget(ufd, &f); 526 static int do_timerfd_gettime(int ufd, struct itimerspec64 *t) argument 530 int ret = timerfd_fget(ufd, &f); 558 SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags, 567 ret = do_timerfd_settime(ufd, flag [all...] |
H A D | file.c | 1301 * @ufd: __user pointer to write new fd number to 1306 * @ufd is non-NULL. 1313 int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags) argument 1326 if (ufd) { 1327 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 | 119 int uffd_read_msg(int ufd, struct uffd_msg *msg); 120 void wp_range(int ufd, __u64 start, __u64 len, bool wp); 122 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp); 123 int copy_page(int ufd, unsigned long offset, bool wp); 124 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 | 213 static inline int scm_recv_one_fd(struct file *f, int __user *ufd, argument 216 if (!ufd) 218 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 | 101 int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags);
|
H A D | bpf.h | 2188 struct bpf_prog *bpf_prog_get(u32 ufd); 2189 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, 2210 struct bpf_map *bpf_map_get(u32 ufd); 2211 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...] |
H A D | syscalls.h | 493 asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags); 518 asmlinkage long sys_timerfd_settime(int ufd, int flags, 521 asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr); 522 asmlinkage long sys_timerfd_gettime32(int ufd, 524 asmlinkage long sys_timerfd_settime32(int ufd, int flags, 1028 asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask);
|
/linux-master/include/uapi/linux/ |
H A D | userfaultfd.h | 125 __u32 ufd; member in struct:uffd_msg::__anon644::__anon647
|
/linux-master/net/core/ |
H A D | sock_map.c | 62 u32 ufd = attr->target_fd; local 70 f = fdget(ufd); 81 u32 ufd = attr->target_fd; local 90 f = fdget(ufd); 556 u64 ufd; local 559 ufd = *(u64 *)value; 561 ufd = *(u32 *)value; 562 if (ufd > S32_MAX) 565 sock = sockfd_lookup(ufd, &ret); 1518 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)
|