Page MenuHomeFreeBSD

Add modevent_nop: NOP module event handler
AbandonedPublic

Authored by cem on May 27 2019, 1:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 6, 9:15 PM
Unknown Object (File)
Apr 12 2024, 5:27 AM
Unknown Object (File)
Apr 12 2024, 3:32 AM
Unknown Object (File)
Mar 20 2024, 6:32 AM
Unknown Object (File)
Mar 7 2024, 4:00 AM
Unknown Object (File)
Mar 4 2024, 7:25 AM
Unknown Object (File)
Jan 15 2024, 5:05 PM
Unknown Object (File)
Dec 20 2023, 8:34 AM
Subscribers
None

Details

Reviewers
jhb
markj
Summary

The default NULL eventhandler forbids unload.

For modules that would like to allow unload, but don't care about module
events, the function "modevent_nop" is exposed. This should allow some
deduplication of identical modevent handler implementations.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24548
Build 23334: arc lint + arc unit

Event Timeline

It'd be nice to document this in MODULE(9) or so.

This revision is now accepted and ready to land.May 27 2019, 6:44 PM
This revision now requires review to proceed.May 27 2019, 10:35 PM
jhb requested changes to this revision.May 28 2019, 5:08 PM

See my comments in the other review. markj was just wrong about DRIVER_MODULE. I don't think this is needed.

This revision now requires changes to proceed.May 28 2019, 5:08 PM