요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/bus/w1/devices/.../page1
2
Date: April 2021
3
Contact: Luiz Sampaio <[email protected]>
4
Description: read the contents of the page1 of the DS2438
5
see Documentation/w1/slaves/w1_ds2438.rst for detailed information
6
Users: any user space application which wants to communicate with DS2438
8
What: /sys/bus/w1/devices/.../offset
9
Date: April 2021
10
Contact: Luiz Sampaio <[email protected]>
11
Description: write the contents to the offset register of the DS2438
12
see Documentation/w1/slaves/w1_ds2438.rst for detailed information
13
Users: any user space application which wants to communicate with DS2438
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
DS2438 page1과 offset register
1-13두 ABI는 2021년 4월에 도입됐고 Luiz Sampaio <[email protected]>가 담당한다. 사용자는 DS2438과 통신하려는 모든 user-space application이다.
| 경로 | 방향 | 설명 |
|---|---|---|
| /sys/bus/w1/devices/.../page1 | read | DS2438의 page1 내용을 읽는다. |
| /sys/bus/w1/devices/.../offset | write | DS2438의 offset register에 내용을 기록한다. |
User-space applicationw1 sysfsDS2438
01
page1 read/devices/.../page1Page1 contents 반환
02
offset value write/devices/.../offsetOffset register 갱신
page1은 device에서 user space로 읽고 offset은 user space에서 device로 기록하는 반대 방향의 interface다.
Register layout과 값의 세부 의미는 Documentation/w1/slaves/w1_ds2438.rst를 참조한다.
Page1 read와 offset write
sysfs-driver-w1_ds2438:1-13User-space application이 DS2438 page1 data를 읽고 offset register를 설정할 수 있습니다.