ufd 263 fs/signalfd.c static int do_signalfd4(int ufd, sigset_t *mask, int flags) ufd 277 fs/signalfd.c if (ufd == -1) { ufd 288 fs/signalfd.c ufd = anon_inode_getfd("[signalfd]", &signalfd_fops, ctx, ufd 290 fs/signalfd.c if (ufd < 0) ufd 293 fs/signalfd.c struct fd f = fdget(ufd); ufd 309 fs/signalfd.c return ufd; ufd 312 fs/signalfd.c SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, ufd 320 fs/signalfd.c return do_signalfd4(ufd, &mask, flags); ufd 323 fs/signalfd.c SYSCALL_DEFINE3(signalfd, int, ufd, sigset_t __user *, user_mask, ufd 331 fs/signalfd.c return do_signalfd4(ufd, &mask, 0); ufd 335 fs/signalfd.c static long do_compat_signalfd4(int ufd, ufd 345 fs/signalfd.c return do_signalfd4(ufd, &mask, flags); ufd 348 fs/signalfd.c COMPAT_SYSCALL_DEFINE4(signalfd4, int, ufd, ufd 353 fs/signalfd.c return do_compat_signalfd4(ufd, user_mask, sigsetsize, flags); ufd 356 fs/signalfd.c COMPAT_SYSCALL_DEFINE3(signalfd, int, ufd, ufd 360 fs/signalfd.c return do_compat_signalfd4(ufd, user_mask, sigsetsize, 0); ufd 389 fs/timerfd.c int ufd; ufd 427 fs/timerfd.c ufd = anon_inode_getfd("[timerfd]", &timerfd_fops, ctx, ufd 429 fs/timerfd.c if (ufd < 0) ufd 432 fs/timerfd.c return ufd; ufd 435 fs/timerfd.c static int do_timerfd_settime(int ufd, int flags, ufd 447 fs/timerfd.c ret = timerfd_fget(ufd, &f); ufd 507 fs/timerfd.c static int do_timerfd_gettime(int ufd, struct itimerspec64 *t) ufd 511 fs/timerfd.c int ret = timerfd_fget(ufd, &f); ufd 539 fs/timerfd.c SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags, ufd 548 fs/timerfd.c ret = do_timerfd_settime(ufd, flags, &new, &old); ufd 557 fs/timerfd.c SYSCALL_DEFINE2(timerfd_gettime, int, ufd, struct __kernel_itimerspec __user *, otmr) ufd 560 fs/timerfd.c int ret = do_timerfd_gettime(ufd, &kotmr); ufd 567 fs/timerfd.c SYSCALL_DEFINE4(timerfd_settime32, int, ufd, int, flags, ufd 576 fs/timerfd.c ret = do_timerfd_settime(ufd, flags, &new, &old); ufd 584 fs/timerfd.c SYSCALL_DEFINE2(timerfd_gettime32, int, ufd, ufd 588 fs/timerfd.c int ret = do_timerfd_gettime(ufd, &kotmr); ufd 1031 fs/userfaultfd.c msg->arg.fork.ufd = fd; ufd 636 include/linux/bpf.h struct bpf_prog *bpf_prog_get(u32 ufd); ufd 637 include/linux/bpf.h struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, ufd 650 include/linux/bpf.h struct bpf_map *bpf_map_get_with_uref(u32 ufd); ufd 672 include/linux/bpf.h int bpf_obj_pin_user(u32 ufd, const char __user *pathname); ufd 751 include/linux/bpf.h static inline struct bpf_prog *bpf_prog_get(u32 ufd) ufd 756 include/linux/bpf.h static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, ufd 882 include/linux/bpf.h static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, ufd 885 include/linux/bpf.h return bpf_prog_get_type_dev(ufd, type, false); ufd 634 include/linux/compat.h asmlinkage long compat_sys_signalfd4(int ufd, ufd 869 include/linux/compat.h asmlinkage long compat_sys_signalfd(int ufd, ufd 835 include/linux/filter.h int sk_attach_bpf(u32 ufd, struct sock *sk); ufd 837 include/linux/filter.h int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk); ufd 500 include/linux/syscalls.h asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags); ufd 533 include/linux/syscalls.h asmlinkage long sys_timerfd_settime(int ufd, int flags, ufd 536 include/linux/syscalls.h asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr); ufd 537 include/linux/syscalls.h asmlinkage long sys_timerfd_gettime32(int ufd, ufd 539 include/linux/syscalls.h asmlinkage long sys_timerfd_settime32(int ufd, int flags, ufd 1064 include/linux/syscalls.h asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask); ufd 90 include/uapi/linux/userfaultfd.h __u32 ufd; ufd 530 kernel/bpf/arraymap.c u32 index = *(u32 *)key, ufd; ufd 538 kernel/bpf/arraymap.c ufd = *(u32 *)value; ufd 539 kernel/bpf/arraymap.c new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); ufd 1438 kernel/bpf/hashtab.c u32 ufd = *(u32 *)value; ufd 1440 kernel/bpf/hashtab.c ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); ufd 62 kernel/bpf/inode.c static void *bpf_fd_probe_obj(u32 ufd, enum bpf_type *type) ufd 67 kernel/bpf/inode.c raw = bpf_map_get_with_uref(ufd); ufd 70 kernel/bpf/inode.c raw = bpf_prog_get(ufd); ufd 422 kernel/bpf/inode.c int bpf_obj_pin_user(u32 ufd, const char __user *pathname) ufd 433 kernel/bpf/inode.c raw = bpf_fd_probe_obj(ufd, &type); ufd 90 kernel/bpf/map_in_map.c int ufd) ufd 95 kernel/bpf/map_in_map.c f = fdget(ufd); ufd 17 kernel/bpf/map_in_map.h int ufd); ufd 673 kernel/bpf/syscall.c struct bpf_map *bpf_map_get_with_uref(u32 ufd) ufd 675 kernel/bpf/syscall.c struct fd f = fdget(ufd); ufd 743 kernel/bpf/syscall.c int ufd = attr->map_fd; ufd 756 kernel/bpf/syscall.c f = fdget(ufd); ufd 878 kernel/bpf/syscall.c int ufd = attr->map_fd; ufd 888 kernel/bpf/syscall.c f = fdget(ufd); ufd 990 kernel/bpf/syscall.c int ufd = attr->map_fd; ufd 999 kernel/bpf/syscall.c f = fdget(ufd); ufd 1041 kernel/bpf/syscall.c int ufd = attr->map_fd; ufd 1050 kernel/bpf/syscall.c f = fdget(ufd); ufd 1107 kernel/bpf/syscall.c int ufd = attr->map_fd; ufd 1117 kernel/bpf/syscall.c f = fdget(ufd); ufd 1169 kernel/bpf/syscall.c int err = 0, ufd = attr->map_fd; ufd 1176 kernel/bpf/syscall.c f = fdget(ufd); ufd 1522 kernel/bpf/syscall.c static struct bpf_prog *__bpf_prog_get(u32 ufd, enum bpf_prog_type *attach_type, ufd 1525 kernel/bpf/syscall.c struct fd f = fdget(ufd); ufd 1542 kernel/bpf/syscall.c struct bpf_prog *bpf_prog_get(u32 ufd) ufd 1544 kernel/bpf/syscall.c return __bpf_prog_get(ufd, NULL, false); ufd 1547 kernel/bpf/syscall.c struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, ufd 1550 kernel/bpf/syscall.c return __bpf_prog_get(ufd, &type, attach_drv); ufd 2663 kernel/bpf/syscall.c int ufd = attr->info.bpf_fd; ufd 2670 kernel/bpf/syscall.c f = fdget(ufd); ufd 1542 net/core/filter.c static struct bpf_prog *__get_bpf(u32 ufd, struct sock *sk) ufd 1547 net/core/filter.c return bpf_prog_get_type(ufd, BPF_PROG_TYPE_SOCKET_FILTER); ufd 1550 net/core/filter.c int sk_attach_bpf(u32 ufd, struct sock *sk) ufd 1552 net/core/filter.c struct bpf_prog *prog = __get_bpf(ufd, sk); ufd 1567 net/core/filter.c int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk) ufd 1575 net/core/filter.c prog = bpf_prog_get_type(ufd, BPF_PROG_TYPE_SOCKET_FILTER); ufd 1577 net/core/filter.c prog = bpf_prog_get_type(ufd, BPF_PROG_TYPE_SK_REUSEPORT); ufd 1008 net/core/sock.c u32 ufd; ufd 1011 net/core/sock.c if (copy_from_user(&ufd, optval, sizeof(ufd))) ufd 1014 net/core/sock.c ret = sk_attach_bpf(ufd, sk); ufd 1034 net/core/sock.c u32 ufd; ufd 1037 net/core/sock.c if (copy_from_user(&ufd, optval, sizeof(ufd))) ufd 1040 net/core/sock.c ret = sk_reuseport_attach_bpf(ufd, sk); ufd 65 net/core/sock_map.c u32 ufd = attr->target_fd; ufd 70 net/core/sock_map.c f = fdget(ufd); ufd 408 net/core/sock_map.c u32 ufd = *(u32 *)value; ufd 414 net/core/sock_map.c sock = sockfd_lookup(ufd, &ret); ufd 734 net/core/sock_map.c u32 ufd = *(u32 *)value; ufd 739 net/core/sock_map.c sock = sockfd_lookup(ufd, &ret); ufd 419 tools/perf/builtin-probe.c int ret, ret2, ufd = -1, kfd = -1; ufd 433 tools/perf/builtin-probe.c ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); ufd 454 tools/perf/builtin-probe.c ret2 = probe_file__get_events(ufd, filter, ulist); ufd 459 tools/perf/builtin-probe.c ret2 = probe_file__del_strlist(ufd, ulist); ufd 472 tools/perf/builtin-probe.c if (ufd >= 0) ufd 473 tools/perf/builtin-probe.c close(ufd); ufd 3467 tools/perf/util/probe-event.c int ret, ret2, ufd = -1, kfd = -1; ufd 3474 tools/perf/util/probe-event.c ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); ufd 3482 tools/perf/util/probe-event.c ret2 = probe_file__del_events(ufd, filter); ufd 3492 tools/perf/util/probe-event.c if (ufd >= 0) ufd 3493 tools/perf/util/probe-event.c close(ufd); ufd 117 tools/perf/util/probe-file.c int probe_file__open_both(int *kfd, int *ufd, int flag) ufd 119 tools/perf/util/probe-file.c if (!kfd || !ufd) ufd 123 tools/perf/util/probe-file.c *ufd = open_uprobe_events(flag & PF_FL_RW); ufd 124 tools/perf/util/probe-file.c if (*kfd < 0 && *ufd < 0) { ufd 125 tools/perf/util/probe-file.c print_both_open_warning(*kfd, *ufd); ufd 42 tools/perf/util/probe-file.h int probe_file__open_both(int *kfd, int *ufd, int flag); ufd 395 tools/testing/selftests/vm/userfaultfd.c static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, ufd 401 tools/testing/selftests/vm/userfaultfd.c if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { ufd 412 tools/testing/selftests/vm/userfaultfd.c static int __copy_page(int ufd, unsigned long offset, bool retry) ufd 424 tools/testing/selftests/vm/userfaultfd.c if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { ufd 435 tools/testing/selftests/vm/userfaultfd.c retry_copy_page(ufd, &uffdio_copy, offset); ufd 442 tools/testing/selftests/vm/userfaultfd.c static int copy_page_retry(int ufd, unsigned long offset) ufd 444 tools/testing/selftests/vm/userfaultfd.c return __copy_page(ufd, offset, true); ufd 447 tools/testing/selftests/vm/userfaultfd.c static int copy_page(int ufd, unsigned long offset) ufd 449 tools/testing/selftests/vm/userfaultfd.c return __copy_page(ufd, offset, false); ufd 452 tools/testing/selftests/vm/userfaultfd.c static int uffd_read_msg(int ufd, struct uffd_msg *msg) ufd 531 tools/testing/selftests/vm/userfaultfd.c uffd = msg.arg.fork.ufd; ufd 797 tools/testing/selftests/vm/userfaultfd.c static void retry_uffdio_zeropage(int ufd, ufd 804 tools/testing/selftests/vm/userfaultfd.c if (ioctl(ufd, UFFDIO_ZEROPAGE, uffdio_zeropage)) { ufd 814 tools/testing/selftests/vm/userfaultfd.c static int __uffdio_zeropage(int ufd, unsigned long offset, bool retry) ufd 828 tools/testing/selftests/vm/userfaultfd.c ret = ioctl(ufd, UFFDIO_ZEROPAGE, &uffdio_zeropage); ufd 851 tools/testing/selftests/vm/userfaultfd.c retry_uffdio_zeropage(ufd, &uffdio_zeropage, ufd 865 tools/testing/selftests/vm/userfaultfd.c static int uffdio_zeropage(int ufd, unsigned long offset) ufd 867 tools/testing/selftests/vm/userfaultfd.c return __uffdio_zeropage(ufd, offset, false);