Page 7 of 66
Dynamic Loading of Kernel Modules (cont)
Entry Points:
- Each module contains entry points _init(9E), _fini(9E),
_info(9E)
- _init(9E) entry point is called when module is loaded
- _init(9E) entry point must call mod_install(9F)
- _init(9E) routine must pass a modlinkage(9S) structure to mod_insta
ll(9F)
- modlinkage(9S) structure describes various module attributes
- Driver module attributes include a pointer to a dev_ops(9S)
structure
- dev_ops(9S) structure specifies the driver's traditional
entry points
- Module _fini(9E) entry point is called to request that
the module unload
- Module _fini(9E) entry point should call mod_remove(9F)
- Module _info(9E) entry point must return specific module
information
FIRST PREVIOUS
NEXT LAST
CONTENTS
Return to White Papers
|