요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/devices/platform/<renesas_usb3's name>/role
2
Date: March 2017
3
KernelVersion: 4.13
4
Contact: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
5
Description:
6
This file can be read and write.
7
The file can show/change the drd mode of usb.
9
Write the following string to change the mode:
11
- "host" - switching mode from peripheral to host.
12
- "peripheral" - switching mode from host to peripheral.
14
Read the file, then it shows the following strings:
16
- "host" - The mode is host now.
17
- "peripheral" - The mode is peripheral now.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Renesas USB3 dual-role sysfs ABI: role
1-17| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/devices/platform/<renesas_usb3's name>/role |
| Date | 2017년 3월 |
| KernelVersion | 4.13 |
| Contact | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> |
| Description | `/sys/devices/platform/<renesas_usb3's name>/role`은 read/write할 수 있으며 USB DRD mode를 표시하거나 변경합니다. `host`를 쓰면 peripheral에서 host로, `peripheral`을 쓰면 host에서 peripheral로 전환합니다. Read 결과 `host`는 현재 host mode, `peripheral`은 현재 peripheral mode임을 뜻합니다. |
StringWrite effectRead meaning
hostPeripheral to hostCurrently host
peripheralHost to peripheralCurrently peripheral
Write transition과 readback 의미를 같은 strings로 대응시킵니다.
USB3 DRD role swap
sysfs-platform-renesas_usb3:1-17Dual-role controller가 사용하는 host/peripheral strings를 mode 전환과 current-state readback에 공통으로 사용합니다.