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)
Wed, Oct 30, 3:49 PM
Unknown Object (File)
Oct 2 2024, 7:40 AM
Unknown Object (File)
Oct 1 2024, 10:33 PM
Unknown Object (File)
Oct 1 2024, 8:15 PM
Unknown Object (File)
Sep 24 2024, 2:44 PM
Unknown Object (File)
Sep 23 2024, 3:58 AM
Unknown Object (File)
Sep 20 2024, 7:07 PM
Unknown Object (File)
Sep 5 2024, 7:08 PM
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