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)
Mon, Oct 13, 8:28 AM
Unknown Object (File)
Sun, Oct 12, 4:23 PM
Unknown Object (File)
Sun, Oct 12, 4:15 PM
Unknown Object (File)
Sun, Oct 12, 1:25 PM
Unknown Object (File)
Sun, Oct 12, 9:26 AM
Unknown Object (File)
Sun, Oct 12, 6:38 AM
Unknown Object (File)
Thu, Sep 25, 11:33 AM
Unknown Object (File)
Sun, Sep 21, 12:01 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