요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
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. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, 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>입니다.