요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Current and requested data role
sysfs-class-usb_role:9-22role은 none, host, device 중 하나이며 non-Type-C port의 role swap을 요청할 수 있습니다. Type-C port는 별도 connector class ABI를 사용해야 합니다.
Optional Type-C connector link
sysfs-class-usb_role:23-27connector는 대응하는 USB Type-C connector로 이어지는 optional symlink입니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/class/usb_role/
2
Date: Jan 2018
3
Contact: Heikki Krogerus <[email protected]>
4
Description:
5
Place in sysfs for USB Role Switches. USB Role Switch is a
6
device that can select the data role (host or device) for USB
7
port.
9
What: /sys/class/usb_role/<switch>/role
10
Date: Jan 2018
11
Contact: Heikki Krogerus <[email protected]>
12
Description:
13
The current role of the switch. This attribute can be used for
14
requesting role swapping with non-USB Type-C ports. With USB
15
Type-C ports, the ABI defined for USB Type-C connector class
16
must be used.
18
Valid values:
19
- none
20
- host
21
- device
23
What: /sys/class/usb_role/<switch>/connector
24
Date: Feb 2024
25
Contact: Heikki Krogerus <[email protected]>
26
Description:
27
Optional symlink to the USB Type-C connector.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
USB role-switch class
1-8| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/usb_role/ |
| Date | 2018년 1월 |
| Contact | Heikki Krogerus <[email protected]> |
| Description | USB Role Switch를 위한 sysfs 위치입니다. USB Role Switch는 USB port의 data role을 host 또는 device로 선택할 수 있는 device입니다. |
Current and requested data role
9-22| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/usb_role/<switch>/role |
| Date | 2018년 1월 |
| Contact | Heikki Krogerus <[email protected]> |
| Description | Switch의 current role입니다. 이 attribute는 USB Type-C가 아닌 port에서 role swap을 요청하는 데 사용할 수 있습니다. USB Type-C port에서는 USB Type-C connector class에 정의된 ABI를 사용해야 합니다. |
| Valid values | none, host, device |
값의미
none활성 data role 없음
hostUSB host role
deviceUSB device role
role attribute가 표현하는 data-role state입니다.
Optional USB Type-C connector link
23-27| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/usb_role/<switch>/connector |
| Date | 2024년 2월 |
| Contact | Heikki Krogerus <[email protected]> |
| Description | USB Type-C connector를 가리키는 optional symlink입니다. |
USB role-switch class
sysfs-class-usb_role:1-8USB Role Switch는 USB port의 data role을 host 또는 device로 선택하며 이 class가 해당 switch를 sysfs에 모읍니다.