|
|
The samp_free_globals( ) subordinate driver routine frees the global resources allocated for the driver in the _load(D2) entry point routine. It is called from the _unload(D2) entry point routine as well as for errors in the _load( ) entry point that prevent the driver from loading.
The code calls the physreq_free(D3) function to release the physreq(D4) structure and calls the bcb_free(D3) function to release the bcb(D4) structure. This routine has no return values because it is unimaginable that the resources could not be free. The only condition where that could happen is if the kernel itself is hopelessly corrupted, in which case, some other portion of the kernel code will panic the system soon enough.