Page MenuHomeFreeBSD

linux: stub io_uring_setup.
Needs ReviewPublic

Authored by philmb3487_proton.me on May 27 2026, 11:52 PM.
Tags
None
Referenced Files
F166371455: D57285.id182053.diff
Thu, Aug 13, 5:21 AM
F166371445: D57285.id178771.diff
Thu, Aug 13, 5:21 AM
F166371444: D57285.id.diff
Thu, Aug 13, 5:21 AM
F166371384: D57285.diff
Thu, Aug 13, 5:20 AM
F166347111: D57285.id178771.diff
Thu, Aug 13, 1:17 AM
Unknown Object (File)
Tue, Aug 11, 6:18 PM
Unknown Object (File)
Mon, Aug 10, 9:08 PM
Unknown Object (File)
Mon, Aug 10, 11:42 AM
Subscribers

Details

Reviewers
None
Group Reviewers
Linux Emulation
Summary

linux: stub io_uring_setup.

Cmake on musl libc fails if io_uring_setup doesn't exist. This is
a system call that was added around ~2019 that adds support for
io_uring, but io_uring itself is not always enabled on modern Linux
distros. Therefore, stub with (EPERM) to let userspace know what to
do.

Signed-off-by: Philippe Michaud-Boudreault <philmb3487@proton.me>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 74836
Build 71719: arc lint + arc unit

Event Timeline

Based on feedback, remove comment text to be more neutral.

philmb3487_proton.me retitled this revision from linux: io_uring implemented as EPERM error. to linux: stub io_uring_setup..Wed, Jul 15, 8:14 PM
philmb3487_proton.me edited the summary of this revision. (Show Details)
philmb3487_proton.me edited the summary of this revision. (Show Details)

Reworked the commit message, and removed the function's comment as a follow up to feedback, in order to be more neutral.