Page MenuHomeFreeBSD

sysent: add a new NORETURN type flag
ClosedPublic

Authored by brooks on Aug 1 2025, 12:45 PM.
Tags
None
Referenced Files
F132274327: D51673.diff
Wed, Oct 15, 10:10 AM
Unknown Object (File)
Sun, Oct 12, 1:01 AM
Unknown Object (File)
Sun, Oct 12, 1:01 AM
Unknown Object (File)
Sun, Oct 12, 1:01 AM
Unknown Object (File)
Sat, Oct 11, 3:32 PM
Unknown Object (File)
Sun, Oct 5, 11:54 PM
Unknown Object (File)
Thu, Oct 2, 9:42 PM
Unknown Object (File)
Thu, Oct 2, 1:30 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.