Version Queries

Version Queries#

AMD SMI: Version Queries
Version Queries

Functions

amdsmi_status_t amdsmi_get_version (amdsmi_version_t *version)
 Get the build version information for the currently running build of AMDSMI. More...
 
amdsmi_status_t amdsmi_get_version_str (amdsmi_sw_component_t component, char *ver_str, uint32_t len)
 Get the driver version string for the current system. More...
 

Detailed Description

These functions provide version information about various subsystems.

Function Documentation

◆ amdsmi_get_version()

amdsmi_status_t amdsmi_get_version ( amdsmi_version_t version)

Get the build version information for the currently running build of AMDSMI.

Get the major, minor, patch and build string for AMDSMI build currently in use through version

Parameters
[in,out]versionA pointer to an amdsmi_version_t structure that will be updated with the version information upon return.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail

◆ amdsmi_get_version_str()

amdsmi_status_t amdsmi_get_version_str ( amdsmi_sw_component_t  component,
char *  ver_str,
uint32_t  len 
)

Get the driver version string for the current system.

Given a software component component, a pointer to a char buffer, ver_str, this function will write the driver version string (up to len characters) for the current system to ver_str. The caller must ensure that it is safe to write at least len characters to ver_str.

Parameters
[in]componentThe component for which the version string is being requested
[in,out]ver_strA pointer to a buffer of char's to which the version of component will be written
[in]lenthe length of the caller provided buffer name.
Note
AMDSMI_STATUS_INSUFFICIENT_SIZE is returned if len bytes is not large enough to hold the entire name. In this case, only len bytes will be written.
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail