SDBUS_CALLBACK_ROUTINE - NtDoc

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

SDBUS_CALLBACK_ROUTINE SdbusCallbackRoutine;

VOID SdbusCallbackRoutine(
  [in] PVOID CallbackRoutineContext,
  [in] ULONG InterruptType
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-ntddsd-sdbus_callback_routine)

SDBUS_CALLBACK_ROUTINE callback function

Description

The PSDBUS_CALLBACK_ROUTINE prototype declares the Secure Digital (SD) driver callback routine that the SD bus driver uses to report device interrupts to the driver.

Parameters

CallbackRoutineContext [in]

Pointer to the context information that the bus driver passes to the callback routine. The device driver supplies the bus driver with this information when it initializes the SD bus interface.

InterruptType [in]

Must be set to SDBUS_INTTYPE_DEVICE.

Remarks

When an SD device driver initializes an instance of the SD bus interface, it loads the CallbackRoutine member of the SDBUS_INTERFACE_PARAMETERS structure with a pointer to PSDBUS_CALLBACK_ROUTINE.

The bus driver calls the SD card driver's callback routine whenever the card indicates an interrupt. The callback routine must send the appropriate device commands to handle and clear the interrupt on the card. After it completes the series of I/O operations, the SD card driver should acknowledge the interrupt. For more information about how SD card drivers acknowledge interrupts, see PSDBUS_ACKNOWLEDGE_INT_ROUTINE.

See also

SDBUS_INTERFACE_PARAMETERS