PSDBUS_INITIALIZE_INTERFACE_ROUTINE callback function (ntddsd.h)

The PSDBUS_INITIALIZE_INTERFACE_ROUTINE prototype declares the routine that a Secure Digital (SD) device driver uses to initialize an interface instance that it creates with the SdBusOpenInterface routine.

Syntax

PSDBUS_INITIALIZE_INTERFACE_ROUTINE PsdbusInitializeInterfaceRoutine;

NTSTATUS PsdbusInitializeInterfaceRoutine(
  [in] PVOID Context,
  [in] PSDBUS_INTERFACE_PARAMETERS InterfaceParameters
)
{...}

Parameters

[in] Context

Contains the interface context that the SdBusOpenInterface routine returns in the Context member of the SDBUS_INTERFACE_STANDARD structure.

[in] InterfaceParameters

Pointer to a structure of type SDBUS_INTERFACE_PARAMETERS that contains the information that the bus driver should use to initialize the interface instance.

Return value

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

Remarks

An SD card driver typically calls its initialization routine immediately after the SdBusOpenInterface routine returns with a value of STATUS_SUCCESS.

An SD card driver must call its initialization routine before attempting to send requests to the bus driver.

Requirements

Requirement Value
Target Platform Desktop
Header ntddsd.h (include Ntddsd.h)

See also

SDBUS_INTERFACE_STANDARD

SdBusOpenInterface