SdBusSubmitRequestAsync function (ntddsd.h)

The SdBusSubmitRequestAsync routine sends an asynchronous Secure Digital (SD) request to the bus driver interface.

Syntax

NTSTATUS SdBusSubmitRequestAsync(
  [in] PVOID                  InterfaceContext,
  [in] PSDBUS_REQUEST_PACKET  Packet,
  [in] PIRP                   Irp,
  [in] PIO_COMPLETION_ROUTINE CompletionRoutine,
  [in] PVOID                  UserContext
);

Parameters

[in] InterfaceContext

Contains the context information returned by the SdBusOpenInterface routine in the Context member of the SDBUS_INTERFACE_STANDARD structure.

[in] Packet

Pointer to a caller-supplied structure of type SDBUS_REQUEST_PACKET that describes the request.

[in] Irp

Points to a caller-supplied IRP that the SD library uses to transmit the request packet. The SdBusSubmitRequestAsync routine stores the packet in the next stack location of the IRP, which allows the caller to reuse IRPs created by a driver higher in the stack.

[in] CompletionRoutine

Pointer to a completion routine of type IoCompletion that SdBusSubmitRequestAsync registers for the IRP specified in the Irp parameter.

[in] UserContext

Pointer to context data that the system passes to the completion routine registered for the IRP specified by the Irp parameter.

Return value

Returns STATUS_SUCCESS or STATUS_PENDING if the operation succeeds, or the appropriate error message if the operation fails.

Remarks

Callers of SdBusSubmitRequestAsync must be running at IRQL <= DISPATCH_LEVEL.

Callers of SdBusSubmitRequest must be running at IRQL < DISPATCH_LEVEL.

This request is handled asynchronously and might return STATUS_PENDING.

Requirements

Requirement Value
Target Platform Desktop
Header ntddsd.h (include Ntddsd.h)
IRQL <=DISPATCH_LEVEL

See also

SDBUS_REQUEST_PACKET

SdBusOpenInterface

SdBusSubmitRequest