dsmi_clear_pcie_error_rate
Prototype
int dsmi_clear_pcie_error_rate(int device_id)
Description
Clears the current PCIe link error statistics.
For the Ascend 310 AI Processor, this API supports mini modules (EP) and standard PCIe cards.
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
device_id |
Input |
Device ID For Ascend 310 AI Processors, the value range is 0–63. Obtain the actual device ID by calling dsmi_list_device. |
Returns
Type |
Description |
---|---|
int |
0 on success; else, failure |
Restrictions
Run the caller application as the root user on a physical machine. Otherwise, a permission error is returned.
This API works with Firmware 1.73.5.6.50 or later.
Example
int ret = 0; int device_id = 0; ret=dsmi_clear_pcie_err_rate(device_id); if(ret != 0){ //To-do: records logs. return ret; } ...