/openbmc/linux/fs/ |
H A D | signalfd.c | 253 static int do_signalfd4(int ufd, sigset_t *mask, int flags) in do_signalfd4() argument 267 if (ufd == -1) { in do_signalfd4() 278 ufd = anon_inode_getfd("[signalfd]", &signalfd_fops, ctx, in do_signalfd4() 280 if (ufd < 0) in do_signalfd4() 283 struct fd f = fdget(ufd); in do_signalfd4() 299 return ufd; in do_signalfd4() 302 SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE4() argument 311 return do_signalfd4(ufd, &mask, flags); in SYSCALL_DEFINE4() 314 SYSCALL_DEFINE3(signalfd, int, ufd, sigset_t __user *, user_mask, in SYSCALL_DEFINE3() argument 323 return do_signalfd4(ufd, &mask, 0); in SYSCALL_DEFINE3() [all …]
|
H A D | timerfd.c | 408 int ufd; in SYSCALL_DEFINE2() local 446 ufd = anon_inode_getfd("[timerfd]", &timerfd_fops, ctx, in SYSCALL_DEFINE2() 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() 526 static int do_timerfd_gettime(int ufd, struct itimerspec64 *t) in do_timerfd_gettime() argument 530 int ret = timerfd_fget(ufd, &f); in do_timerfd_gettime() 558 SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags, in SYSCALL_DEFINE4() argument 567 ret = do_timerfd_settime(ufd, flags, &new, &old); in SYSCALL_DEFINE4() [all …]
|
H A D | file.c | 1145 * @ufd: __user pointer to write new fd number to 1150 * @ufd is non-NULL. 1157 int __receive_fd(struct file *file, int __user *ufd, unsigned int o_flags) in __receive_fd() 1170 if (ufd) { in __receive_fd() 1171 error = put_user(new_fd, ufd); in __receive_fd() 1156 __receive_fd(struct file * file,int __user * ufd,unsigned int o_flags) __receive_fd() argument
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | uffd-common.c | 367 void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument 377 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range() 381 static void continue_range(int ufd, __u64 start, __u64 len, bool wp) in continue_range() argument 392 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range() 402 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range() 408 int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() argument 540 uffd = msg.arg.fork.ufd; in uffd_poll_thread() 560 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument 566 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page() 577 static void wake_range(int ufd, unsigned long addr, unsigned long len) in wake_range() argument [all …]
|
H A D | uffd-common.h | 112 int uffd_read_msg(int ufd, struct uffd_msg *msg); 113 void wp_range(int ufd, __u64 start, __u64 len, bool wp); 115 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp); 116 int copy_page(int ufd, unsigned long offset, bool wp);
|
H A D | uffd-unit-tests.c | 247 args->child_uffd = msg.arg.fork.ufd; in fork_event_consumer() 877 static void retry_uffdio_zeropage(int ufd, in retry_uffdio_zeropage() argument 883 if (ioctl(ufd, UFFDIO_ZEROPAGE, uffdio_zeropage)) { in retry_uffdio_zeropage() 893 static bool do_uffdio_zeropage(int ufd, bool has_zeropage) in do_uffdio_zeropage() argument 902 ret = ioctl(ufd, UFFDIO_ZEROPAGE, &uffdio_zeropage); in do_uffdio_zeropage() 914 retry_uffdio_zeropage(ufd, &uffdio_zeropage); in do_uffdio_zeropage()
|
H A D | uffd-stress.c | 123 static int copy_page_retry(int ufd, unsigned long offset) in copy_page_retry() argument 125 return __copy_page(ufd, offset, true, test_uffdio_wp); in copy_page_retry()
|
/openbmc/linux/include/linux/ |
H A D | file.h | 99 extern int __receive_fd(struct file *file, int __user *ufd, 104 static inline int receive_fd_user(struct file *file, int __user *ufd, in receive_fd_user() argument 107 if (ufd == NULL) in receive_fd_user() 109 return __receive_fd(file, ufd, o_flags); in receive_fd_user()
|
H A D | bpf.h | 2069 struct bpf_prog *bpf_prog_get(u32 ufd); 2070 struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, enum bpf_prog_type type, 2090 struct bpf_map *bpf_map_get(u32 ufd); 2091 struct bpf_map *bpf_map_get_with_uref(u32 ufd); 2214 struct bpf_link *bpf_link_get_from_fd(u32 ufd); 2217 int bpf_obj_pin_user(u32 ufd, int path_fd, const char __user *pathname); 2508 static inline struct bpf_prog *bpf_prog_get(u32 ufd) in bpf_prog_get() argument 2513 static inline struct bpf_prog *bpf_prog_get_type_dev(u32 ufd, in bpf_prog_get_type_dev() argument 2774 static inline struct bpf_prog *bpf_prog_get_type(u32 ufd, in bpf_prog_get_type() argument 2777 return bpf_prog_get_type_dev(ufd, type, false); in bpf_prog_get_type()
|
H A D | syscalls.h | 485 asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags); 510 asmlinkage long sys_timerfd_settime(int ufd, int flags, 513 asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr); 514 asmlinkage long sys_timerfd_gettime32(int ufd, 516 asmlinkage long sys_timerfd_settime32(int ufd, int flags, 1011 asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask);
|
/openbmc/qemu/migration/ |
H A D | postcopy-ram.c | 224 int ufd; in receive_ufd_features() local 227 ufd = uffd_open(O_CLOEXEC); in receive_ufd_features() 228 if (ufd == -1) { in receive_ufd_features() 236 if (ioctl(ufd, UFFDIO_API, &api_struct)) { in receive_ufd_features() 246 close(ufd); in receive_ufd_features() 259 static bool request_ufd_features(int ufd, uint64_t features) in request_ufd_features() argument 266 if (ioctl(ufd, UFFDIO_API, &api_struct)) { in request_ufd_features() 283 static bool ufd_check_and_apply(int ufd, MigrationIncomingState *mis, in ufd_check_and_apply() argument 318 if (!request_ufd_features(ufd, asked_features)) { in ufd_check_and_apply() 376 int ufd = -1; in postcopy_ram_supported_by_host() local [all …]
|
H A D | postcopy-ram.h | 147 typedef int (*pcfdhandler)(struct PostCopyFD *pcfd, void *ufd);
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | sys_parisc.c | 337 asmlinkage long parisc_signalfd4(int ufd, sigset_t __user *user_mask, in parisc_signalfd4() argument 341 return sys_signalfd4(ufd, user_mask, sizemask, flags); in parisc_signalfd4() 345 asmlinkage long parisc_compat_signalfd4(int ufd, in parisc_compat_signalfd4() argument 350 return compat_sys_signalfd4(ufd, user_mask, sizemask, flags); in parisc_compat_signalfd4()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-probe.c | 443 int ret, ret2, ufd = -1, kfd = -1; in perf_del_probe_events() local 457 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in perf_del_probe_events() 479 ret2 = probe_file__get_events(ufd, filter, ulist); in perf_del_probe_events() 484 ret2 = probe_file__del_strlist(ufd, ulist); in perf_del_probe_events() 498 if (ufd >= 0) in perf_del_probe_events() 499 close(ufd); in perf_del_probe_events()
|
/openbmc/linux/kernel/bpf/ |
H A 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() 478 int bpf_obj_pin_user(u32 ufd, int path_fd, const char __user *pathname) in bpf_obj_pin_user() argument 484 raw = bpf_fd_probe_obj(ufd, &type); in bpf_obj_pin_user()
|
H A D | map_in_map.c | 110 int ufd) in bpf_map_fd_get_ptr() argument 115 f = fdget(ufd); in bpf_map_fd_get_ptr()
|
H A D | map_in_map.h | 15 int ufd);
|
H A D | syscall.c | 1347 struct bpf_map *bpf_map_get(u32 ufd) in bpf_map_get() argument 1349 struct fd f = fdget(ufd); in bpf_map_get() 1363 struct bpf_map *bpf_map_get_with_uref(u32 ufd) in bpf_map_get_with_uref() argument 1365 struct fd f = fdget(ufd); in bpf_map_get_with_uref() 1438 int ufd = attr->map_fd; in map_lookup_elem() local 1451 f = fdget(ufd); in map_lookup_elem() 1513 int ufd = attr->map_fd; in map_update_elem() local 1523 f = fdget(ufd); in map_update_elem() 1568 int ufd = attr->map_fd; in map_delete_elem() local 1577 f = fdget(ufd); in map_delete_elem() [all …]
|
/openbmc/linux/net/core/ |
H A D | sock_map.c | 62 u32 ufd = attr->target_fd; in sock_map_get_from_fd() local 70 f = fdget(ufd); in sock_map_get_from_fd() 81 u32 ufd = attr->target_fd; in sock_map_prog_detach() local 90 f = fdget(ufd); in sock_map_prog_detach() 553 u64 ufd; in sock_map_update_elem_sys() local 556 ufd = *(u64 *)value; in sock_map_update_elem_sys() 558 ufd = *(u32 *)value; in sock_map_update_elem_sys() 559 if (ufd > S32_MAX) in sock_map_update_elem_sys() 562 sock = sockfd_lookup(ufd, &ret); in sock_map_update_elem_sys() 1521 u32 prog_cnt = 0, flags = 0, ufd = attr->target_fd; in sock_map_bpf_prog_query() local [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | probe-file.c | 152 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()
|
H A D | probe-file.h | 42 int probe_file__open_both(int *kfd, int *ufd, int flag);
|
/openbmc/linux/tools/tracing/latency/ |
H A D | latency-collector.c | 1639 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()
|
/openbmc/linux/include/uapi/linux/ |
H A D | userfaultfd.h | 119 __u32 ufd; member
|
/openbmc/qemu/linux-headers/linux/ |
H A D | userfaultfd.h | 125 __u32 ufd; member
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user.c | 1938 void *ufd) in vhost_user_postcopy_fault_handler() argument 1942 struct uffd_msg *msg = ufd; in vhost_user_postcopy_fault_handler() 2010 int ufd; in vhost_user_postcopy_advise() local 2039 ufd = qemu_chr_fe_get_msgfd(chr); in vhost_user_postcopy_advise() 2040 if (ufd < 0) { in vhost_user_postcopy_advise() 2044 qemu_socket_set_nonblock(ufd); in vhost_user_postcopy_advise() 2047 u->postcopy_fd.fd = ufd; in vhost_user_postcopy_advise()
|