Home
last modified time | relevance | path

Searched refs:ufd (Results 1 – 25 of 26) sorted by relevance

12

/linux/fs/
A Dsignalfd.c252 static int do_signalfd4(int ufd, sigset_t *mask, int flags) in do_signalfd4() argument
266 if (ufd == -1) { in do_signalfd4()
279 if (ufd < 0) in do_signalfd4()
282 struct fd f = fdget(ufd); in do_signalfd4()
298 return ufd; in do_signalfd4()
310 return do_signalfd4(ufd, &mask, flags); in SYSCALL_DEFINE4()
322 return do_signalfd4(ufd, &mask, 0); in SYSCALL_DEFINE3()
326 static long do_compat_signalfd4(int ufd, in do_compat_signalfd4() argument
336 return do_signalfd4(ufd, &mask, flags); in do_compat_signalfd4()
339 COMPAT_SYSCALL_DEFINE4(signalfd4, int, ufd, in COMPAT_SYSCALL_DEFINE4() argument
[all …]
A Dtimerfd.c408 int ufd; in SYSCALL_DEFINE2() local
448 if (ufd < 0) in SYSCALL_DEFINE2()
451 return ufd; in SYSCALL_DEFINE2()
454 static int do_timerfd_settime(int ufd, int flags, in do_timerfd_settime() argument
466 ret = timerfd_fget(ufd, &f); in do_timerfd_settime()
530 int ret = timerfd_fget(ufd, &f); in do_timerfd_gettime()
567 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4()
579 int ret = do_timerfd_gettime(ufd, &kotmr); in SYSCALL_DEFINE2()
595 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4()
603 SYSCALL_DEFINE2(timerfd_gettime32, int, ufd, in SYSCALL_DEFINE2() argument
[all …]
A Dfile.c1157 int __receive_fd(struct file *file, int __user *ufd, unsigned int o_flags) in __receive_fd() argument
1170 if (ufd) { in __receive_fd()
1171 error = put_user(new_fd, ufd); in __receive_fd()
/linux/tools/testing/selftests/vm/
A Duserfaultfd.c513 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range()
526 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range()
536 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range()
580 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
598 if (ioctl(ufd, UFFDIO_WAKE, &uffdio_wake)) in wake_range()
617 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page()
622 wake_range(ufd, uffdio_copy.dst, page_size); in __copy_page()
637 return __copy_page(ufd, offset, true); in copy_page_retry()
642 return __copy_page(ufd, offset, false); in copy_page()
747 uffd = msg.arg.fork.ufd; in uffd_poll_thread()
[all …]
/linux/include/linux/
A Dfile.h95 extern int __receive_fd(struct file *file, int __user *ufd,
100 static inline int receive_fd_user(struct file *file, int __user *ufd, in receive_fd_user() argument
103 if (ufd == NULL) in receive_fd_user()
105 return __receive_fd(file, ufd, o_flags); in receive_fd_user()
A Dbpf.h1388 struct bpf_prog *bpf_prog_get(u32 ufd);
1389 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type,
1400 struct bpf_map *bpf_map_get(u32 ufd);
1401 struct bpf_map *bpf_map_get_with_uref(u32 ufd);
1492 struct bpf_link *bpf_link_get_from_fd(u32 ufd);
1494 int bpf_obj_pin_user(u32 ufd, const char __user *pathname);
1726 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get() argument
1731 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev() argument
1949 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type() argument
1952 return bpf_prog_get_type_dev(ufd, type, false); in bpf_prog_get_type()
A Dsyscalls.h540 asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags);
573 asmlinkage long sys_timerfd_settime(int ufd, int flags,
576 asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr);
577 asmlinkage long sys_timerfd_gettime32(int ufd,
579 asmlinkage long sys_timerfd_settime32(int ufd, int flags,
1121 asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask);
A Dcompat.h652 asmlinkage long compat_sys_signalfd4(int ufd,
851 asmlinkage long compat_sys_signalfd(int ufd,
A Dfilter.h939 int sk_attach_bpf(u32 ufd, struct sock *sk);
941 int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk);
/linux/tools/perf/
A Dbuiltin-probe.c426 int ret, ret2, ufd = -1, kfd = -1; in perf_del_probe_events() local
440 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in perf_del_probe_events()
462 ret2 = probe_file__get_events(ufd, filter, ulist); in perf_del_probe_events()
467 ret2 = probe_file__del_strlist(ufd, ulist); in perf_del_probe_events()
481 if (ufd >= 0) in perf_del_probe_events()
482 close(ufd); in perf_del_probe_events()
/linux/kernel/bpf/
A Dmap_in_map.c91 int ufd) in bpf_map_fd_get_ptr() argument
96 f = fdget(ufd); in bpf_map_fd_get_ptr()
A Dsyscall.c1062 int ufd = attr->map_fd; in map_lookup_elem() local
1075 f = fdget(ufd); in map_lookup_elem()
1137 int ufd = attr->map_fd; in map_update_elem() local
1147 f = fdget(ufd); in map_update_elem()
1206 f = fdget(ufd); in map_delete_elem()
1262 f = fdget(ufd); in map_get_next_key()
1545 f = fdget(ufd); in map_lookup_and_delete_elem()
1630 f = fdget(ufd); in map_freeze()
4006 f = fdget(ufd); in bpf_obj_get_info_by_fd()
4192 int err, ufd; in bpf_map_do_batch() local
[all …]
A Dinode.c70 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()
481 int bpf_obj_pin_user(u32 ufd, const char __user *pathname) in bpf_obj_pin_user() argument
487 raw = bpf_fd_probe_obj(ufd, &type); in bpf_obj_pin_user()
A Dmap_in_map.h15 int ufd);
A Darraymap.c784 u32 index = *(u32 *)key, ufd; in bpf_fd_array_map_update_elem() local
792 ufd = *(u32 *)value; in bpf_fd_array_map_update_elem()
793 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem()
A Dhashtab.c2349 u32 ufd = *(u32 *)value; in bpf_fd_htab_map_update_elem() local
2351 ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_htab_map_update_elem()
/linux/arch/parisc/kernel/
A Dsys_parisc.c428 asmlinkage long parisc_signalfd4(int ufd, sigset_t __user *user_mask, in parisc_signalfd4() argument
432 return sys_signalfd4(ufd, user_mask, sizemask, flags); in parisc_signalfd4()
436 asmlinkage long parisc_compat_signalfd4(int ufd, in parisc_compat_signalfd4() argument
441 return compat_sys_signalfd4(ufd, user_mask, sizemask, flags); in parisc_compat_signalfd4()
/linux/net/core/
A Dsock_map.c64 u32 ufd = attr->target_fd; in sock_map_get_from_fd() local
72 f = fdget(ufd); in sock_map_get_from_fd()
83 u32 ufd = attr->target_fd; in sock_map_prog_detach() local
92 f = fdget(ufd); in sock_map_prog_detach()
548 u64 ufd; in sock_map_update_elem_sys() local
551 ufd = *(u64 *)value; in sock_map_update_elem_sys()
553 ufd = *(u32 *)value; in sock_map_update_elem_sys()
554 if (ufd > S32_MAX) in sock_map_update_elem_sys()
557 sock = sockfd_lookup(ufd, &ret); in sock_map_update_elem_sys()
A Dsock.c1230 u32 ufd; in sock_setsockopt() local
1233 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sock_setsockopt()
1236 ret = sk_attach_bpf(ufd, sk); in sock_setsockopt()
1251 u32 ufd; in sock_setsockopt() local
1254 if (copy_from_sockptr(&ufd, optval, sizeof(ufd))) in sock_setsockopt()
1257 ret = sk_reuseport_attach_bpf(ufd, sk); in sock_setsockopt()
A Dfilter.c1562 static struct bpf_prog *__get_bpf(u32 ufd, struct sock *sk) in __get_bpf() argument
1567 return bpf_prog_get_type(ufd, BPF_PROG_TYPE_SOCKET_FILTER); in __get_bpf()
1570 int sk_attach_bpf(u32 ufd, struct sock *sk) in sk_attach_bpf() argument
1572 struct bpf_prog *prog = __get_bpf(ufd, sk); in sk_attach_bpf()
1587 int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk) in sk_reuseport_attach_bpf() argument
1595 prog = bpf_prog_get_type(ufd, BPF_PROG_TYPE_SOCKET_FILTER); in sk_reuseport_attach_bpf()
1597 prog = bpf_prog_get_type(ufd, BPF_PROG_TYPE_SK_REUSEPORT); in sk_reuseport_attach_bpf()
/linux/tools/perf/util/
A Dprobe-file.c152 int probe_file__open_both(int *kfd, int *ufd, int flag) in probe_file__open_both() argument
154 if (!kfd || !ufd) in probe_file__open_both()
158 *ufd = open_uprobe_events(flag & PF_FL_RW); in probe_file__open_both()
159 if (*kfd < 0 && *ufd < 0) { in probe_file__open_both()
160 print_both_open_warning(*kfd, *ufd, flag & PF_FL_RW); in probe_file__open_both()
A Dprobe-file.h42 int probe_file__open_both(int *kfd, int *ufd, int flag);
A Dprobe-event.c3690 int ret, ret2, ufd = -1, kfd = -1; in del_perf_probe_events() local
3697 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in del_perf_probe_events()
3705 ret2 = probe_file__del_events(ufd, filter); in del_perf_probe_events()
3715 if (ufd >= 0) in del_perf_probe_events()
3716 close(ufd); in del_perf_probe_events()
/linux/tools/tracing/latency/
A Dlatency-collector.c1639 int ufd; in start_printthread() local
1641 ufd = open(DEV_URANDOM, O_RDONLY); in start_printthread()
1650 if (ufd < 0 || in start_printthread()
1651 read(ufd, seed, sizeof(*seed)) != sizeof(*seed)) { in start_printthread()
1663 if (ufd > 0 && close(ufd) != 0) in start_printthread()
/linux/include/uapi/linux/
A Duserfaultfd.h105 __u32 ufd; member

Completed in 88 milliseconds

12