Skip to content

BdfFromADLXGPU

Navigation: ADLX SDK ReferencesADLX InterfacesMiscellaneousIADLMapping

Syntax

ADLX_RESULT    BdfFromADLXGPU (IADLXGPU* ppGPU, adlx_int* bus, adlx_int* device, adlx_int* function)

Parameters

#DirectionNameTypeDescription
1.[in]pGPUIADLXGPUThe pointer to the GPU interface.
#DirectionNameTypeDescription
---------------
2.[out]busadlx_int*The pointer to a variable where the unique PCIE bus number of the requested GPU is returned.
#DirectionNameTypeDescription
---------------
3.[out]deviceadlx_int*The pointer to a variable where the device number of the requested GPU is returned.
#DirectionNameTypeDescription
---------------
4.[out]functionadlx_int*The pointer to a variable where function number of the requested GPU is returned.

Return Value

If bus, device, function are returned correctly, ADLX_OK is returned.

If bus, device, function are not returned correctly, an error code is returned.

Refer to ADLX_RESULT for success codes and error codes.

Remarks

BdfFromADLXGPU is used when an ADL function must be called for a GPU obtained from ADLX, and the GPU’s PCI bus, device, and function are required for that ADL function.

Requirements

Headerinclude “ADLXDefines.h”
Minimum version1.0

See Also: IADLXGPU, ADLX Enums