Page MenuHomeFreeBSD

kern/intr: start adding non-NULL event interface variant
Needs ReviewPublic

Authored by ehem_freebsd_m5p.com on Jun 13 2025, 5:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 29, 8:51 PM
Unknown Object (File)
Sat, Jun 28, 9:23 PM
Unknown Object (File)
Fri, Jun 27, 5:27 AM
Unknown Object (File)
Thu, Jun 26, 8:14 PM
Unknown Object (File)
Sun, Jun 22, 5:53 PM
Unknown Object (File)
Sat, Jun 21, 11:33 PM
Unknown Object (File)
Fri, Jun 20, 10:28 PM
Unknown Object (File)
Thu, Jun 19, 2:55 PM
Subscribers

Details

Reviewers
mhorne
jhb
Summary

Nearly all callers have are known to have already initialize the event
before calling these functions. As such add variants which assume the
event will be non-NULL and will panic() if this occurs.

Diff Detail

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

Event Timeline

@mhorne this is a follow-on to D33479. If the normal interface is going to include NULL-checks, but they can be omitted in some fairly common circumstances what do you prefer for new names? Underscore prefix tends to point to internal (though can also indicate lower-level), but some letter suffix would also work. Your view since you've been emphasizing the consistency here?