요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /config/usb-gadget/gadget/functions/hid.name
2
Date: Nov 2014
3
KernelVersion: 3.19
4
Description:
5
The attributes:
7
============= ============================================
8
protocol HID protocol to use
9
report_desc blob corresponding to HID report descriptors
10
except the data passed through /dev/hidg<N>
11
report_length HID report length
12
subclass HID device subclass to use
13
============= ============================================
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
USB HID function instance attributes
1-13| 항목 | 내용 |
|---|---|
| What | /config/usb-gadget/gadget/functions/hid.name |
| Date | 2014년 11월 |
| KernelVersion | 3.19 |
| Attribute | 설명 |
|---|---|
| protocol | 사용할 HID protocol |
| report_desc | HID report descriptor에 해당하는 blob이다. `/dev/hidg<N>`을 통해 전달되는 data는 여기에 포함되지 않는다. |
| report_length | HID report length |
| subclass | 사용할 HID device subclass |
functions/hid.name→protocol / subclass→HID interface identity
functions/hid.name→report_desc / report_length→HID report format
Runtime HID report data→/dev/hidg<N>→USB HID transfer
Configfs attribute는 HID interface의 형식과 descriptor를 정하고, 실제 HID report payload는 hidg character device를 통과한다.
HID descriptor configuration
configfs-usb-gadget-hid:1-13HID protocol과 subclass, report size 및 descriptor blob을 function instance에 설정하며 actual report data path는 /dev/hidg<N>입니다.