Contents

GetBusDeviceFunction

Returns the device’s bus, device, and function numbers.

Declaration

virtual kern_return_t GetBusDeviceFunction(uint8_t *returnBusNumber, uint8_t *returnDeviceNumber, uint8_t *returnFunctionNumber);

Parameters

  • returnBusNumber:

    A variable in which you want to store the bus number.

  • returnDeviceNumber:

    A variable in which you want to store the device number.

  • returnFunctionNumber:

    A variable in which you want to store the function number.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

See Also

Getting Device Information