/kernel/linux/linux-5.10/fs/ |
D | signalfd.c | 254 static int do_signalfd4(int ufd, sigset_t *mask, int flags) in do_signalfd4() argument 268 if (ufd == -1) { in do_signalfd4() 279 ufd = anon_inode_getfd("[signalfd]", &signalfd_fops, ctx, in do_signalfd4() 281 if (ufd < 0) in do_signalfd4() 284 struct fd f = fdget(ufd); in do_signalfd4() 300 return ufd; in do_signalfd4() 303 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE4() argument 312 return do_signalfd4(ufd, &mask, flags); in SYSCALL_DEFINE4() 315 SYSCALL_DEFINE3(signalfd, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE3() argument 324 return do_signalfd4(ufd, &mask, 0); in SYSCALL_DEFINE3() [all …]
|
D | timerfd.c | 392 int ufd; in SYSCALL_DEFINE2() local 430 ufd = anon_inode_getfd("[timerfd]", &timerfd_fops, ctx, in SYSCALL_DEFINE2() 432 if (ufd < 0) in SYSCALL_DEFINE2() 435 return ufd; in SYSCALL_DEFINE2() 438 static int do_timerfd_settime(int ufd, int flags, in do_timerfd_settime() argument 450 ret = timerfd_fget(ufd, &f); in do_timerfd_settime() 510 static int do_timerfd_gettime(int ufd, struct itimerspec64 *t) in do_timerfd_gettime() argument 514 int ret = timerfd_fget(ufd, &f); in do_timerfd_gettime() 542 SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags, in SYSCALL_DEFINE4() argument 551 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4() [all …]
|
D | file.c | 1142 int __receive_fd(int fd, struct file *file, int __user *ufd, unsigned int o_flags) in __receive_fd() argument 1159 if (ufd) { in __receive_fd() 1160 error = put_user(new_fd, ufd); in __receive_fd()
|
/kernel/linux/linux-5.10/include/linux/ |
D | file.h | 95 extern int __receive_fd(int fd, struct file *file, int __user *ufd, 97 static inline int receive_fd_user(struct file *file, int __user *ufd, in receive_fd_user() argument 100 if (ufd == NULL) in receive_fd_user() 102 return __receive_fd(-1, file, ufd, o_flags); in receive_fd_user()
|
D | bpf.h | 1305 struct bpf_prog *bpf_prog_get(u32 ufd); 1306 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, 1319 struct bpf_map *bpf_map_get(u32 ufd); 1320 struct bpf_map *bpf_map_get_with_uref(u32 ufd); 1389 struct bpf_link *bpf_link_get_from_fd(u32 ufd); 1391 int bpf_obj_pin_user(u32 ufd, const char __user *pathname); 1575 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get() argument 1580 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev() argument 1776 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type() argument 1779 return bpf_prog_get_type_dev(ufd, type, false); in bpf_prog_get_type()
|
D | syscalls.h | 529 asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags); 562 asmlinkage long sys_timerfd_settime(int ufd, int flags, 565 asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr); 566 asmlinkage long sys_timerfd_gettime32(int ufd, 568 asmlinkage long sys_timerfd_settime32(int ufd, int flags, 1096 asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask);
|
D | compat.h | 590 asmlinkage long compat_sys_signalfd4(int ufd, 809 asmlinkage long compat_sys_signalfd(int ufd,
|
D | filter.h | 890 int sk_attach_bpf(u32 ufd, struct sock *sk); 892 int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk);
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | userfaultfd.c | 342 static void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument 352 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) { in wp_range() 478 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument 484 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page() 497 static int __copy_page(int ufd, unsigned long offset, bool retry) in __copy_page() argument 513 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page() 526 retry_copy_page(ufd, &uffdio_copy, offset); in __copy_page() 533 static int copy_page_retry(int ufd, unsigned long offset) in copy_page_retry() argument 535 return __copy_page(ufd, offset, true); in copy_page_retry() 538 static int copy_page(int ufd, unsigned long offset) in copy_page() argument [all …]
|
/kernel/linux/linux-5.10/tools/perf/ |
D | builtin-probe.c | 422 int ret, ret2, ufd = -1, kfd = -1; in perf_del_probe_events() local 436 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in perf_del_probe_events() 458 ret2 = probe_file__get_events(ufd, filter, ulist); in perf_del_probe_events() 463 ret2 = probe_file__del_strlist(ufd, ulist); in perf_del_probe_events() 477 if (ufd >= 0) in perf_del_probe_events() 478 close(ufd); in perf_del_probe_events()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | map_in_map.c | 83 int ufd) in bpf_map_fd_get_ptr() argument 88 f = fdget(ufd); in bpf_map_fd_get_ptr()
|
D | syscall.c | 941 struct bpf_map *bpf_map_get(u32 ufd) in bpf_map_get() argument 943 struct fd f = fdget(ufd); in bpf_map_get() 956 struct bpf_map *bpf_map_get_with_uref(u32 ufd) in bpf_map_get_with_uref() argument 958 struct fd f = fdget(ufd); in bpf_map_get_with_uref() 1018 int ufd = attr->map_fd; in map_lookup_elem() local 1031 f = fdget(ufd); in map_lookup_elem() 1085 int ufd = attr->map_fd; in map_update_elem() local 1095 f = fdget(ufd); in map_update_elem() 1151 int ufd = attr->map_fd; in map_delete_elem() local 1160 f = fdget(ufd); in map_delete_elem() [all …]
|
D | inode.c | 70 static void *bpf_fd_probe_obj(u32 ufd, enum bpf_type *type) in bpf_fd_probe_obj() argument 74 raw = bpf_map_get_with_uref(ufd); in bpf_fd_probe_obj() 80 raw = bpf_prog_get(ufd); in bpf_fd_probe_obj() 86 raw = bpf_link_get_from_fd(ufd); in bpf_fd_probe_obj() 480 int bpf_obj_pin_user(u32 ufd, const char __user *pathname) in bpf_obj_pin_user() argument 486 raw = bpf_fd_probe_obj(ufd, &type); in bpf_obj_pin_user()
|
D | map_in_map.h | 15 int ufd);
|
D | arraymap.c | 744 u32 index = *(u32 *)key, ufd; in bpf_fd_array_map_update_elem() local 752 ufd = *(u32 *)value; in bpf_fd_array_map_update_elem() 753 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem()
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
D | sys_parisc.c | 407 asmlinkage long parisc_signalfd4(int ufd, sigset_t __user *user_mask, in parisc_signalfd4() argument 411 return sys_signalfd4(ufd, user_mask, sizemask, flags); in parisc_signalfd4() 415 asmlinkage long parisc_compat_signalfd4(int ufd, in parisc_compat_signalfd4() argument 420 return compat_sys_signalfd4(ufd, user_mask, sizemask, flags); in parisc_compat_signalfd4()
|
/kernel/liteos_a/syscall/ |
D | ipc_syscall.c | 83 int ufd = (INTPTR)personal; in SysMqClose() local 90 FreeProcessFd(ufd); in SysMqClose()
|
/kernel/linux/linux-5.10/net/core/ |
D | sock_map.c | 69 u32 ufd = attr->target_fd; in sock_map_get_from_fd() local 77 f = fdget(ufd); in sock_map_get_from_fd() 88 u32 ufd = attr->target_fd; in sock_map_prog_detach() local 97 f = fdget(ufd); in sock_map_prog_detach() 585 u64 ufd; in sock_map_update_elem_sys() local 588 ufd = *(u64 *)value; in sock_map_update_elem_sys() 590 ufd = *(u32 *)value; in sock_map_update_elem_sys() 591 if (ufd > S32_MAX) in sock_map_update_elem_sys() 594 sock = sockfd_lookup(ufd, &ret); in sock_map_update_elem_sys()
|
D | sock.c | 1074 u32 ufd; in sock_setsockopt() local 1077 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sock_setsockopt() 1080 ret = sk_attach_bpf(ufd, sk); in sock_setsockopt() 1095 u32 ufd; in sock_setsockopt() local 1098 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sock_setsockopt() 1101 ret = sk_reuseport_attach_bpf(ufd, sk); in sock_setsockopt()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | probe-file.h | 42 int probe_file__open_both(int *kfd, int *ufd, int flag);
|
D | probe-file.c | 117 int probe_file__open_both(int *kfd, int *ufd, int flag) in probe_file__open_both() argument 119 if (!kfd || !ufd) in probe_file__open_both() 123 *ufd = open_uprobe_events(flag & PF_FL_RW); in probe_file__open_both() 124 if (*kfd < 0 && *ufd < 0) { in probe_file__open_both() 125 print_both_open_warning(*kfd, *ufd); in probe_file__open_both()
|
D | probe-event.c | 3575 int ret, ret2, ufd = -1, kfd = -1; in del_perf_probe_events() local 3582 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in del_perf_probe_events() 3590 ret2 = probe_file__del_events(ufd, filter); in del_perf_probe_events() 3600 if (ufd >= 0) in del_perf_probe_events() 3601 close(ufd); in del_perf_probe_events()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
D | userfaultfd.h | 62 __u32 ufd; member
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
D | userfaultfd.h | 95 __u32 ufd; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
D | userfaultfd.h | 56 __u32 ufd; member
|