unload(D2)
unload - unload a loadable kernel module
As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.
NAME unload - unload a loadable kernel module SYNOPSIS int prefixunload(void); DESCRIPTION The module unload routine handles any cleanup a loadable kernel module must perform before it can be dynamically unloaded from a running system. Return Values The unload routine should return 0 for success, or the appropriate error number. USAGE This entry point is optional. The unload routine can perform activities such as: deallocate memory acquired for private data cancel any outstanding itimeout(D3) or bufcall(D3) requests made by the module Synchronization Constraints The unload routine should not sleep, and should not call any functions that sleep.