Page MenuHomeFreeBSD

EVENTHANDLER.9: EVENTHANDLER_REGISTER never fails
ClosedPublic

Authored by obiwac on Jan 31 2026, 4:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 25, 7:14 PM
Unknown Object (File)
Wed, Aug 19, 2:37 PM
Unknown Object (File)
Thu, Aug 13, 1:46 PM
Unknown Object (File)
Thu, Aug 13, 1:36 AM
Unknown Object (File)
Wed, Aug 12, 4:19 PM
Unknown Object (File)
Mon, Aug 10, 11:59 AM
Unknown Object (File)
Sun, Aug 9, 7:19 AM
Unknown Object (File)
Sat, Aug 8, 1:59 PM
Subscribers

Details

Summary

Since ecdf4409f910 ("Rework the eventhandler locking [...]"),
EVENTHANDLER_REGISTER() can never return NULL.

Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

Since ecdf4409f910

Please use a Fixes: trailer for that, it keeps them together for this type of situation is a standardized way. I also have a vague recollection someone built some tooling around it.

zlei added a subscriber: zlei.

LGTM.

Since ecdf4409f910

Please use a Fixes: trailer for that, it keeps them together for this type of situation is a standardized way. I also have a vague recollection someone built some tooling around it.

+1 for that.

This revision is now accepted and ready to land.Feb 2 2026, 11:44 AM

Would appreciate a:
Suggested by: olce
tag line at commit. Thanks!