Page MenuHomeFreeBSD

Implement eventfd system call.
AbandonedPublic

Authored by dchagin on Nov 3 2014, 8:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 2, 10:06 AM
Unknown Object (File)
Mon, Apr 27, 11:49 PM
Unknown Object (File)
Sun, Apr 26, 12:02 AM
Unknown Object (File)
Tue, Apr 14, 5:41 PM
Unknown Object (File)
Apr 13 2026, 1:17 PM
Unknown Object (File)
Mar 30 2026, 6:45 AM
Unknown Object (File)
Mar 21 2026, 11:27 AM
Unknown Object (File)
Mar 20 2026, 4:28 AM
Subscribers

Details

Reviewers
trasz
Group Reviewers
Linux Emulation
Summary

In collaboration with: Jilles Tjoelker

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

dchagin retitled this revision from to Implement eventfd system call..
dchagin updated this object.

A general note: have you considered turning it into a FreeBSD syscall, living in eg sys/kern/kern_eventfd.c, with a Linux wrapper around it? This - and some other Linux-specific syscalls - could end up making porting software easier.

sys/compat/linux/linux_event.c
523

Use UMA with its own zone instead of malloc with M_EPOLL? You could then move mtx_init/mtx_destroy into ctor/dtor.

In D1094#3, @trasz wrote:

A general note: have you considered turning it into a FreeBSD syscall, living in eg sys/kern/kern_eventfd.c, with a Linux wrapper around it? This - and some other Linux-specific syscalls - could end up making porting software easier.

ugh, I can, it seems to me that we need discuss it in public, some people ask me to make native epoll also.

After D2172 rewrite as a tiny wrapper.

trasz added a reviewer: trasz.
This revision is now accepted and ready to land.Mar 31 2015, 11:43 AM

Full Linuxulator version commited.