Page MenuHomeFreeBSD

sysent: add a new NORETURN type flag
ClosedPublic

Authored by brooks on Aug 1 2025, 12:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 5, 9:28 PM
Unknown Object (File)
Mon, Mar 30, 8:40 AM
Unknown Object (File)
Sun, Mar 29, 9:43 PM
Unknown Object (File)
Fri, Mar 20, 12:19 AM
Unknown Object (File)
Wed, Mar 11, 10:29 AM
Unknown Object (File)
Feb 28 2026, 9:36 PM
Unknown Object (File)
Feb 26 2026, 5:26 PM
Unknown Object (File)
Feb 26 2026, 1:21 PM
Subscribers

Details

Summary

System calls of type NORETURN don't return and their stubs are declare
not to.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Aug 1 2025, 1:11 PM

I did briefly wonder if there are any other attributes we might consider in the future, and if it'd be worth slightly expanding the flag/type syntax to allow a parameterized type for arbitrary attributes CAPENABLED|ATTR(_Noreturn, _Attr), but I think not.

This revision was automatically updated to reflect the committed changes.