요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
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
5
What: /sys/devices/*/of_node
6
Date: February 2015
7
Contact: Device Tree mailing list <devicetree@vger.kernel.org>
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/
13
What: /sys/devices/*/devspec
14
Date: October 2016
15
Contact: Device Tree mailing list <devicetree@vger.kernel.org>
16
Description:
17
If CONFIG_OF is enabled, then this file is present. When
18
read, it returns full name of the device node.
20
What: /sys/devices/*/obppath
21
Date: October 2016
22
Contact: Device Tree mailing list <devicetree@vger.kernel.org>
23
Description:
24
If CONFIG_OF is enabled, then this file is present. When
25
read, it returns full name of the device node.
27
What: /sys/devices/*/dev
28
Date: Jun 2006
29
Contact: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30
Description:
31
Major and minor numbers of the character device corresponding
32
to the device (in <major>:<minor> format).
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Device Tree node 연결
1-25이 문서는 Documentation/admin-guide/sysfs-rules.rst에 기록된 내용 이외에 모든 device가 가질 수 있는 추가 property를 설명한다.
| 경로 | 도입·담당 | 의미 |
|---|---|---|
| /sys/devices/*/of_node | 2015년 2월 · devicetree@vger.kernel.org | Device Tree node와 연결된 device는 /sys/firmware/devicetree/의 대응 node를 가리키는 symlink를 갖는다. 원문 설명은 symlink 이름을 of_path라고 적지만 What 경로는 of_node다. |
| /sys/devices/*/devspec | 2016년 10월 · devicetree@vger.kernel.org | CONFIG_OF가 활성화된 경우 존재하며 읽으면 device node의 full name을 반환한다. |
| /sys/devices/*/obppath | 2016년 10월 · devicetree@vger.kernel.org | CONFIG_OF가 활성화된 경우 존재하며 읽으면 device node의 full name을 반환한다. |
Character device major:minor
27-32| 항목 | 값 |
|---|---|
| What | /sys/devices/*/dev |
| Date | 2006년 6월 |
| Contact | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
해당 device에 대응하는 character device의 major와 minor number를 <major>:<minor> 형식으로 표시한다.
Device Tree 연결 정보
sysfs-devices:1-25admin-guide sysfs rule 이외의 of_node, devspec, obppath 속성을 다룹니다.