NDK_FN_DEREGISTER_MR routine

The NdkDeregisterMr (NDK_FN_DEREGISTER_MR) function deregisters a memory region that was previously registered with the NdkRegisterMr (NDK_FN_REGISTER_MR) function.

Syntax


NDK_FN_DEREGISTER_MR NdkDeregisterMr;

NTSTATUS NdkDeregisterMr(
  _In_      NDK_MR *pNdkMr,
  _In_      NDK_FN_REQUEST_COMPLETION RequestCompletion,
  _In_opt_  PVOID RequestContext
)
{ ... }

Parameters

pNdkMr [in]

A pointer to an NDK memory region (MR) object (NDK_MR) that is in the registered state.

RequestCompletion [in]

A pointer to a request completion callback routine NdkRequestCompletion (NDK_FN_REQUEST_COMPLETION).

RequestContext [in, optional]

A context value to pass to the Context parameter of the callback function that is specified in the RequestCompletion parameter.

Return value

The NdkDeregisterMr function returns one of the following NTSTATUS codes.

Return codeDescription
STATUS_SUCCESS

Deregistration was completed successfully.

STATUS_PENDING

The operation is pending and will be completed later. The driver will call the specified RequestCompletion (NDK_FN_REQUEST_COMPLETION) function to complete the pending operation.

Other status codes

An error occurred.

 

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Version

Supported in NDIS 6.30 and later.

Header

Ndkpi.h (include Ndkpi.h)

IRQL

<=DISPATCH_LEVEL

See also

NDK_FN_REGISTER_MR
NDK_FN_REQUEST_COMPLETION
NDK_MR
NDKPI Object Lifetime Requirements

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft