Next | Prev | Up | Top | Contents | Index

Module Entry Points

Loadable device drivers must conform to the UNIX System V Release 4 DDI/DKI standard. In addition to the entry points specified by the standard, if a loadable module is to be unloaded, the module needs to contain an unload entry point:

int drvunload (void)

An unload() routine should be treated as an interrupt routine. It should not call any routines that would cause it to sleep, such as biowait(), sleep(), psema(), or delay().



Next | Prev | Up | Top | Contents | Index