Documentation/ABI/stable/sysfs-devices GitHub 원문 ↗

Linux 6.18.37 · ABI / stable

공통 device stable sysfs ABI

Device Tree node와 연결된 device의 sysfs link·full node name, Open Firmware path와 character device major:minor를 설명합니다.

Source pathDocumentation/ABI/stable/sysfs-devices
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Device Tree 연결 정보

sysfs-devices:1-25

admin-guide sysfs rule 이외의 of_node, devspec, obppath 속성을 다룹니다.

Character device number

sysfs-devices:27-32

대응 character device의 major:minor 번호를 제공합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Note:
2 This documents additional properties of any device beyond what
3 is documented in Documentation/admin-guide/sysfs-rules.rst
4
5 What: /sys/devices/*/of_node
6 Date: February 2015
7 Contact: Device Tree mailing list <[email protected]>
8 Description:
9 Any device associated with a device-tree node will have
10 an of_path symlink pointing to the corresponding device
11 node in /sys/firmware/devicetree/
12
13 What: /sys/devices/*/devspec
14 Date: October 2016
15 Contact: Device Tree mailing list <[email protected]>
16 Description:
17 If CONFIG_OF is enabled, then this file is present. When
18 read, it returns full name of the device node.
19
20 What: /sys/devices/*/obppath
21 Date: October 2016
22 Contact: Device Tree mailing list <[email protected]>
23 Description:
24 If CONFIG_OF is enabled, then this file is present. When
25 read, it returns full name of the device node.
26
27 What: /sys/devices/*/dev
28 Date: Jun 2006
29 Contact: Greg Kroah-Hartman <[email protected]>
30 Description:
31 Major and minor numbers of the character device corresponding
32 to the device (in <major>:<minor> format).
33

3. 한국어 전문 번역

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

Device Tree node 연결

1-25

이 문서는 Documentation/admin-guide/sysfs-rules.rst에 기록된 내용 이외에 모든 device가 가질 수 있는 추가 property를 설명한다.

경로도입·담당의미
/sys/devices/*/of_node2015년 2월 · [email protected]Device Tree node와 연결된 device는 /sys/firmware/devicetree/의 대응 node를 가리키는 symlink를 갖는다. 원문 설명은 symlink 이름을 of_path라고 적지만 What 경로는 of_node다.
/sys/devices/*/devspec2016년 10월 · [email protected]CONFIG_OF가 활성화된 경우 존재하며 읽으면 device node의 full name을 반환한다.
/sys/devices/*/obppath2016년 10월 · [email protected]CONFIG_OF가 활성화된 경우 존재하며 읽으면 device node의 full name을 반환한다.

Character device major:minor

27-32
항목값
What/sys/devices/*/dev
Date2006년 6월
ContactGreg Kroah-Hartman <[email protected]>

해당 device에 대응하는 character device의 major와 minor number를 <major>:<minor> 형식으로 표시한다.