Devlink 自檢¶
devlink-selftests API 允許在裝置上執行自檢。
測試掩碼¶
devlink-selftests 命令應與指示要執行的測試的掩碼一起執行。
測試描述¶
以下是驅動程式可能執行的測試列表。
名稱 |
描述 |
|
裝置可能在板載非易失性記憶體(例如快閃記憶體)上擁有韌體。此特定測試有助於在裝置上執行快閃記憶體自檢。測試的實現留給驅動程式/韌體。 |
使用示例¶
# Query selftests supported on the devlink device
$ devlink dev selftests show DEV
# Query selftests supported on all devlink devices
$ devlink dev selftests show
# Executes selftests on the device
$ devlink dev selftests run DEV id flash