From: tzachid Date: Mon, 21 Nov 2005 12:27:07 +0000 (+0000) Subject: Update of the TODO file, and propagation of the driver object to the SdpArp::Init... X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=05be6839ea9e7cc1d1243a731313265b1c822231;p=~shefty%2Frdma-win.git Update of the TODO file, and propagation of the driver object to the SdpArp::Init (Rev 434) git-svn-id: svn://openib.tc.cornell.edu/gen1@178 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/ulp/sdp/kernel/SdpArp.cpp b/trunk/ulp/sdp/kernel/SdpArp.cpp index 43bced95..e317aea2 100644 --- a/trunk/ulp/sdp/kernel/SdpArp.cpp +++ b/trunk/ulp/sdp/kernel/SdpArp.cpp @@ -5,7 +5,7 @@ #pragma warning(disable: 4244 ) NTSTATUS -SdpArp::Init() +SdpArp::Init(PDRIVER_OBJECT DriverObject) { SDP_PRINT(SDP_TRACE, SDP_SOCKET,("Entering")); diff --git a/trunk/ulp/sdp/kernel/SdpArp.h b/trunk/ulp/sdp/kernel/SdpArp.h index e8eb2028..6737b867 100644 --- a/trunk/ulp/sdp/kernel/SdpArp.h +++ b/trunk/ulp/sdp/kernel/SdpArp.h @@ -24,7 +24,7 @@ public: ib_path_rec_t *path_rec; }; - NTSTATUS Init(); + NTSTATUS Init(PDRIVER_OBJECT DriverObject); VOID Shutdown(); diff --git a/trunk/ulp/sdp/kernel/SdpDriver.cpp b/trunk/ulp/sdp/kernel/SdpDriver.cpp index 1ad412f4..f975c88f 100644 --- a/trunk/ulp/sdp/kernel/SdpDriver.cpp +++ b/trunk/ulp/sdp/kernel/SdpDriver.cpp @@ -75,7 +75,7 @@ extern "C" NTSTATUS DriverEntry ( DeviceCreated = true; pSdpDriver = new (pDevObj->DeviceExtension) SdpDriver; - rc = pSdpDriver->Init(pDevObj); + rc = pSdpDriver->Init(pDevObj, pDriverObject); if (!NT_SUCCESS(rc)) { SDP_PRINT(SDP_ERR, SDP_DRIVER, ("pSdpDriver->Init failed rc = 0x%x\n", rc )); @@ -115,6 +115,7 @@ Cleanup: } } g_pSdpDriver = pSdpDriver; + return rc; } @@ -303,7 +304,7 @@ if ((InputBufferLength < sizeof (InStruct)) || } NTSTATUS -SdpDriver::Init(PDEVICE_OBJECT pDevObj) +SdpDriver::Init(PDEVICE_OBJECT pDevObj, PDRIVER_OBJECT DriverObject) { NTSTATUS rc = STATUS_SUCCESS; m_pDevObj = pDevObj; @@ -313,7 +314,7 @@ SdpDriver::Init(PDEVICE_OBJECT pDevObj) rc = STATUS_NO_MEMORY; goto Cleanup; } - rc = m_pSdpArp->Init(); + rc = m_pSdpArp->Init(DriverObject); if (!NT_SUCCESS(rc)) { SDP_PRINT(SDP_ERR, SDP_DRIVER, ("m_pSdpArp->Init failed rc = 0x%x\n", rc )); goto Cleanup; diff --git a/trunk/ulp/sdp/kernel/SdpDriver.h b/trunk/ulp/sdp/kernel/SdpDriver.h index 41d5224c..0dd2793b 100644 --- a/trunk/ulp/sdp/kernel/SdpDriver.h +++ b/trunk/ulp/sdp/kernel/SdpDriver.h @@ -22,7 +22,7 @@ public: m_pSdpArp = NULL; } - NTSTATUS Init(PDEVICE_OBJECT pDevObj); + NTSTATUS Init(PDEVICE_OBJECT pDevObj, PDRIVER_OBJECT DriverObject); VOID Shutdown(); diff --git a/trunk/ulp/sdp/todo b/trunk/ulp/sdp/todo index 0f59b5d5..1813675b 100644 --- a/trunk/ulp/sdp/todo +++ b/trunk/ulp/sdp/todo @@ -22,6 +22,9 @@ KERNEL MODE: and we have credits. general: + + Close the IPOIB device: Probably based on the example from src\general\toaster\toastmon\toastmon.c + proabably (EventCategoryDeviceInterfaceChange) USER MODE: