Page MenuHomeFreeBSD

eventfd: Add eventfd_signal()
AcceptedPublic

Authored by dumbbell on Jun 14 2025, 5:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 7, 9:39 AM
Unknown Object (File)
Wed, Dec 3, 9:25 PM
Unknown Object (File)
Nov 10 2025, 10:57 PM
Unknown Object (File)
Nov 6 2025, 8:37 PM
Unknown Object (File)
Nov 5 2025, 12:14 AM
Unknown Object (File)
Nov 3 2025, 3:15 PM
Unknown Object (File)
Oct 27 2025, 3:33 PM
Unknown Object (File)
Oct 25 2025, 2:46 AM
Subscribers

Details

Reviewers
markj
Group Reviewers
linuxkpi
Summary

The eventfd_signal() function is the equivalent to a write to an eventfd file descriptor: it bumps the internal counter and wakes up processes waiting for it.

eventfd_signal() is meant to be used by kernel drivers. DRM drivers will call it through linuxkpi.

This is a requirement to the following patch to drm-kmod:
https://github.com/freebsd/drm-kmod/pull/358

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

markj added a subscriber: markj.
markj added inline comments.
sys/kern/sys_eventfd.c
158

What's the purpose of having the mask parameter? Do you plan to extend this in the future?

167

It would be better to share this code with eventfd_write(), but it is not critical.

This revision is now accepted and ready to land.Sun, Nov 30, 4:42 PM