Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

int kLdrModClose ( PKLDRMOD  pMod  ) 

Closes an open module.

The caller is responsible for calling kLdrModUnmap() and kLdrFreeTLS() before closing the module.

0 on success, non-zero on failure. The module instance state is unknown on failure, it's best not to touch it.
pMod The module.

Definition at line 233 of file kLdrMod.c.

References KLDRMOD_VALIDATE, KLDRMODOPS::pfnDestroy, and KLDRMOD::pOps.

Referenced by BasicTests(), kldrDyldModCreate(), kldrDyldModDestroy(), and TestModule().

    return pMod->pOps->pfnDestroy(pMod);

Generated by  Doxygen 1.6.0   Back to index