Documentation/networking/devlink/devlink-selftests.rst GitHub 원문 ↗

Linux 6.18.37 · Networking

Devlink Selftests

Devlink 장치의 지원 selftest 조회와 flash selftest 실행 방법을 설명합니다.

Source pathDocumentation/networking/devlink/devlink-selftests.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

원문 전체 펼치기
1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
3 =================
4 Devlink Selftests
5 =================
6
7 The ``devlink-selftests`` API allows executing selftests on the device.
8
9 Tests Mask
10 ==========
11 The ``devlink-selftests`` command should be run with a mask indicating
12 the tests to be executed.
13
14 Tests Description
15 =================
16 The following is a list of tests that drivers may execute.
17
18 .. list-table:: List of tests
19 :widths: 5 90
20
21 * - Name
22 - Description
23 * - ``DEVLINK_SELFTEST_FLASH``
24 - Devices may have the firmware on non-volatile memory on the board, e.g.
25 flash. This particular test helps to run a flash selftest on the device.
26 Implementation of the test is left to the driver/firmware.
27
28 example usage
29 -------------
30
31 .. code:: shell
32
33 # Query selftests supported on the devlink device
34 $ devlink dev selftests show DEV
35 # Query selftests supported on all devlink devices
36 $ devlink dev selftests show
37 # Executes selftests on the device
38 $ devlink dev selftests run DEV id flash
39

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.