[ofw] [PATCH] ibbus symbolic link deletion

Slava Strebkov slavas at voltaire.com
Mon Mar 31 23:06:28 PDT 2008


 

Hi,

The patch deletes ibbus symbolic link on driver unloads.

 

Index: core/bus/kernel/bus_driver.c

===================================================================

--- core/bus/kernel/bus_driver.c  (revision 1026)

+++ core/bus/kernel/bus_driver.c           (working copy)

@@ -455,10 +455,12 @@

 bus_drv_unload(

            IN                                             DRIVER_OBJECT
*p_driver_obj )

 {

-           BUS_ENTER( BUS_DBG_DRV );

-

+          UNICODE_STRING        dos_name;

            UNUSED_PARAM( p_driver_obj );

 

+          BUS_ENTER( BUS_DBG_DRV );

+          RtlInitUnicodeString( &dos_name,
L"\\DosDevices\\Global\\ibal" );

+          IoDeleteSymbolicLink( &dos_name );

            CL_DEINIT;

 

 #if defined(EVENT_TRACING)

 

 

 

 

Slava 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080401/46ba82ae/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sym_link_removal.diff
Type: application/octet-stream
Size: 570 bytes
Desc: sym_link_removal.diff
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080401/46ba82ae/attachment.obj>


More information about the ofw mailing list