NDK_FN_RECEIVE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndkpi.h

NDK_FN_RECEIVE NdkFnReceive;

NTSTATUS NdkFnReceive(
  [in]           NDK_QP *pNdkQp,
  [in, optional] PVOID RequestContext,
                 const NDK_SGE *pSgl,
  [in]           ULONG nSge
)
{...}

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ndkpi-ndk_fn_receive)

NDK_FN_RECEIVE callback function

Description

The NdkReceive (NDK_FN_RECEIVE) function posts a receive request on an NDK queue pair (QP).

Parameters

pNdkQp [in]

A pointer to an NDK queue pair (QP) object (NDK_QP).

RequestContext [in, optional]

A context value to be returned in the RequestContext member of the NDK_RESULT structure for this request.

pSgl

An array of SGE structures (NDK_SGE) that represent the buffers to receive incoming data.

nSge [in]

The number of SGE structures in the array that is specified in the pSgl parameter.

Return value

The NdkReceive function returns one of the following NTSTATUS codes.

Return code Description
STATUS_SUCCESS The request was posted successfully. A completion entry will be queued to the CQ when the work request is completed.
Other status codes An error occurred.

Remarks

NdkReceive posts a receive request on a queue pair (QP).

See also

NDKPI Work Request Posting Requirements

NDK_QP

NDK_RESULT

NDK_SGE