freebsd-dev/sys/compat/linux
Konstantin Belousov 7a202823aa Expose eventfd in the native API/ABI using a new __specialfd syscall
eventfd is a Linux system call that produces special file descriptors
for event notification. When porting Linux software, it is currently
usually emulated by epoll-shim on top of kqueues.  Unfortunately, kqueues
are not passable between processes.  And, as noted by the author of
epoll-shim, even if they were, the library state would also have to be
passed somehow.  This came up when debugging strange HW video decode
failures in Firefox.  A native implementation would avoid these problems
and help with porting Linux software.

Since we now already have an eventfd implementation in the kernel (for
the Linuxulator), it's pretty easy to expose it natively, which is what
this patch does.

Submitted by:   greg@unrelenting.technology
Reviewed by:    markj (previous version)
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D26668
2020-12-27 12:57:26 +02:00
..
check_error.d
check_internal_locks.d
linux_common.c Move V4L feature declarations and DTrace provider definitions from 2020-12-06 10:58:55 +00:00
linux_common.h
linux_dtrace.h
linux_dummy.c linux(4): Implement name_to_handle_at(), open_by_handle_at() 2020-11-17 19:51:47 +00:00
linux_emul.c Linuxolator: Replace use of eventhandlers by sysent hooks. 2020-11-23 18:18:16 +00:00
linux_emul.h Linuxolator: Replace use of eventhandlers by sysent hooks. 2020-11-23 18:18:16 +00:00
linux_errno.c Add linux_to_bsd_errtbl[], mapping Linux errnos to their BSD counterparts. 2020-11-04 19:54:18 +00:00
linux_errno.h Unbreak buildworld after r367339. 2020-11-04 21:39:04 +00:00
linux_errno.inc Add linux_to_bsd_errtbl[], mapping Linux errnos to their BSD counterparts. 2020-11-04 19:54:18 +00:00
linux_event.c Expose eventfd in the native API/ABI using a new __specialfd syscall 2020-12-27 12:57:26 +02:00
linux_event.h Linux epoll: Register events with zero event mask 2019-11-24 20:47:40 +00:00
linux_file.c linux(4): Implement name_to_handle_at(), open_by_handle_at() 2020-11-17 19:51:47 +00:00
linux_file.h linux(4): Implement name_to_handle_at(), open_by_handle_at() 2020-11-17 19:51:47 +00:00
linux_fork.c linux(4) clone(2): Correctly handle CLONE_FS and CLONE_FILES 2020-11-17 21:20:11 +00:00
linux_futex.c compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
linux_futex.h linux: futex_mtx should follow futex_list 2019-10-18 12:25:33 +00:00
linux_getcwd.c cache: drop the always curthread argument from reverse lookup routines 2020-08-24 08:57:02 +00:00
linux_ioctl.c Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
linux_ioctl.h linux(4): Quiesce unrecognized ioctl warning for F2FS query 2020-11-02 18:45:43 +00:00
linux_ipc64.h
linux_ipc.c compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
linux_ipc.h
linux_mib.c - add more linux socket options (sorted by value) 2020-11-08 09:50:58 +00:00
linux_mib.h Add compat.linux.dummy_rlimits, and disable by default. 2020-10-18 15:58:16 +00:00
linux_misc.c linux(4): Fix loadable modules after r367395 2020-11-06 22:04:57 +00:00
linux_misc.h linux(4) prctl(2): Implement PR_[GS]ET_DUMPABLE 2020-11-03 02:10:54 +00:00
linux_mmap.c linux(4): Quiesce warning about madvise(..., -1) 2020-10-30 19:02:59 +00:00
linux_mmap.h Add linux_madvise(2) instead of having Linux apps call the native 2020-06-20 18:29:22 +00:00
linux_persona.h
linux_signal.c compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
linux_signal.h
linux_socket.c unix(4): Enhance LOCAL_CREDS_PERSISTENT ABI 2020-11-17 20:01:21 +00:00
linux_socket.h - add more linux socket options (sorted by value) 2020-11-08 09:50:58 +00:00
linux_stats.c Fix potential race condition in linux stat(2). 2020-10-20 17:19:10 +00:00
linux_sysctl.c
linux_sysproto.h
linux_time.c compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
linux_timer.c compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
linux_timer.h Centralize compatability translation macros. 2020-04-14 20:30:48 +00:00
linux_uid16.c linux: add sysctl compat.linux.use_emul_path 2020-08-18 22:04:22 +00:00
linux_util.c Move V4L feature declarations and DTrace provider definitions from 2020-12-06 10:58:55 +00:00
linux_util.h - add more linux socket options (sorted by value) 2020-11-08 09:50:58 +00:00
linux_vdso.c compat: clean up empty lines in .c and .h files 2020-09-01 21:24:33 +00:00
linux_vdso.h
linux_videodev2_compat.h
linux_videodev_compat.h
linux.c linuxolator: implement memfd_create syscall 2020-06-29 03:09:14 +00:00
linux.h linux(4): Improve netlink diagnostics 2020-11-03 19:50:42 +00:00
stats_timing.d
trace_futexes.d