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)
Fri, Feb 28, 9:37 AM
Unknown Object (File)
Fri, Feb 28, 5:56 AM
Unknown Object (File)
Fri, Feb 28, 5:23 AM
Unknown Object (File)
Fri, Feb 28, 1:48 AM
Unknown Object (File)
Mon, Feb 24, 12:26 AM
Unknown Object (File)
Thu, Feb 20, 4:47 PM
Unknown Object (File)
Feb 19 2025, 10:31 AM
Unknown Object (File)
Feb 19 2025, 10:22 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