Page MenuHomeFreeBSD

evdev: add devnum sysctl
ClosedPublic

Authored by quentin.thebault_defenso.fr on May 12 2026, 1:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Aug 22, 11:21 PM
Unknown Object (File)
Wed, Aug 19, 1:50 AM
Unknown Object (File)
Tue, Aug 18, 12:07 AM
Unknown Object (File)
Thu, Aug 13, 12:55 AM
Unknown Object (File)
Wed, Aug 12, 1:50 AM
Unknown Object (File)
Mon, Aug 10, 12:17 PM
Unknown Object (File)
Mon, Aug 10, 11:20 AM
Unknown Object (File)
Sun, Aug 9, 11:58 AM
Subscribers

Details

Summary

Add a sysctl entry for the evdev device number (devnum) to allow libudev-devd to
populate the corresponding device information fields (MAJOR and MINOR) when
running in a jail with no input devices exposed through devfs.

Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr>
Sponsored by: Defenso
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Enables an improvement of libudev-devd (https://github.com/wulf7/libudev-devd/pull/15), itself necessary for a cleaner patch of libinput (https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1471) to let libinput work in a jail with no devfs but an available seat manager (e.g. seatd socket on nullfs) to get file descriptors from the host.

This revision is now accepted and ready to land.May 28 2026, 6:57 AM
This revision was automatically updated to reflect the committed changes.