If vendor/device/subsystem name is not found, use device ID string (#41)
* If vendor/device/subsystem name is not found, use device ID string
This commit is contained in:
@@ -595,6 +595,12 @@ rsmi_status_t rsmi_dev_vendor_id_get(uint32_t dv_ind, uint16_t *id);
|
||||
* will write the name of the device (up to @p len characters) to the buffer
|
||||
* @p name.
|
||||
*
|
||||
* If the integer ID associated with the device is not found in one of the
|
||||
* system files containing device name information (e.g.
|
||||
* /usr/share/misc/pci.ids), then this function will return the hex device ID
|
||||
* as a string. Updating the system name files can be accompplished with
|
||||
* "sudo update-pciids".
|
||||
*
|
||||
* @param[in] dv_ind a device index
|
||||
*
|
||||
* @param[inout] name a pointer to a caller provided char buffer to which the
|
||||
@@ -618,6 +624,12 @@ rsmi_status_t rsmi_dev_name_get(uint32_t dv_ind, char *name, size_t len);
|
||||
* name of the vendor (up to @p len characters) buffer @p name. The @p id may
|
||||
* be a device vendor or subsystem vendor ID.
|
||||
*
|
||||
* If the integer ID associated with the vendor is not found in one of the
|
||||
* system files containing device name information (e.g.
|
||||
* /usr/share/misc/pci.ids), then this function will return the hex vendor ID
|
||||
* as a string. Updating the system name files can be accompplished with
|
||||
* "sudo update-pciids".
|
||||
*
|
||||
* @param[in] id a vendor ID
|
||||
*
|
||||
* @param[inout] name a pointer to a caller provided char buffer to which the
|
||||
@@ -659,6 +671,12 @@ rsmi_status_t rsmi_dev_subsystem_id_get(uint32_t dv_ind, uint16_t *id);
|
||||
* will write the name of the device subsystem (up to @p len characters)
|
||||
* to the buffer @p name.
|
||||
*
|
||||
* If the integer ID associated with the sub-system is not found in one of the
|
||||
* system files containing device name information (e.g.
|
||||
* /usr/share/misc/pci.ids), then this function will return the hex sub-system
|
||||
* ID as a string. Updating the system name files can be accompplished with
|
||||
* "sudo update-pciids".
|
||||
*
|
||||
* @param[in] dv_ind a device index
|
||||
*
|
||||
* @param[inout] name a pointer to a caller provided char buffer to which the
|
||||
|
||||
Reference in New Issue
Block a user