);
extern NTSTATUS bus__module_init(void);
-
-/**
- * Tear down the global, bus-common environment.
- */
-extern void bus__finalize(void);
+extern void bus__module_shutdown(void);
/**
* Create a new bus.
/**
* Tear down the global, bus-common environment.
*/
-void bus__finalize(void) {
+void bus__module_shutdown(void) {
UNICODE_STRING DosDeviceName;
DBG("Entry\n");
return status;
}
-static void STDCALL
-Driver_Unload (
- IN PDRIVER_OBJECT DriverObject
- )
-{
- if ( Driver_Globals_StateHandle != NULL )
- PoUnregisterSystemState ( Driver_Globals_StateHandle );
- bus__finalize ( );
- wv_free(os_load_opts);
- Driver_Globals_Started = FALSE;
- DBG ( "Done\n" );
-}
+static void STDCALL Driver_Unload(IN PDRIVER_OBJECT DriverObject) {
+ if (Driver_Globals_StateHandle != NULL)
+ PoUnregisterSystemState(Driver_Globals_StateHandle);
+ bus__module_shutdown();
+ wv_free(os_load_opts);
+ Driver_Globals_Started = FALSE;
+ DBG("Done\n");
+ }
winvblock__lib_func void STDCALL
Driver_CompletePendingIrp (