요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
2
What: /sys/class/net/<iface>/peak_usb/can_channel_id
3
Date: November 2022
4
KernelVersion: 6.2
5
Contact: Stephane Grosjean <s.grosjean@peak-system.com>
6
Description:
7
PEAK PCAN-USB devices support user-configurable CAN channel
8
identifiers. Contrary to a USB serial number, these identifiers
9
are writable and can be set per CAN interface. This means that
10
if a USB device exports multiple CAN interfaces, each of them
11
can be assigned a unique channel ID.
12
This attribute provides read-only access to the currently
13
configured value of the channel identifier. Depending on the
14
device type, the identifier has a length of 8 or 32 bit. The
15
value read from this attribute is always an 8 digit 32 bit
16
hexadecimal value in big endian format. If the device only
17
supports an 8 bit identifier, the upper 24 bit of the value are
18
set to zero.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
PEAK USB CAN channel identifier
2-19| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/net/<iface>/peak_usb/can_channel_id |
| Date | 2022년 11월 |
| KernelVersion | 6.2 |
| Contact | Stephane Grosjean <s.grosjean@peak-system.com> |
| Description | PEAK PCAN-USB device는 사용자가 구성할 수 있는 CAN channel identifier를 지원합니다. USB serial number와 달리 이 identifier는 쓸 수 있고 CAN interface별로 설정할 수 있습니다. 따라서 하나의 USB device가 여러 CAN interface를 내보내면 각각에 고유한 channel ID를 할당할 수 있습니다. 이 속성은 현재 구성된 channel identifier 값에 대한 read-only access를 제공합니다. Device type에 따라 identifier 길이는 8-bit 또는 32-bit입니다. 이 속성에서 읽는 값은 항상 big-endian 형식의 8자리 32-bit hexadecimal 값입니다. Device가 8-bit identifier만 지원하면 값의 상위 24-bit는 0으로 설정됩니다. |
Device 지원 폭sysfs 표시상위 bit
8-bit8자리 32-bit big-endian hexadecimal상위 24-bit = 0
32-bit8자리 32-bit big-endian hexadecimal전체 32-bit 사용
Device-native identifier 폭과 sysfs에서 읽는 고정 표현을 구분합니다.
CAN channel identifier
sysfs-class-net-peak_usb:2-19USB serial과 달리 interface별로 구성 가능한 8-bit 또는 32-bit CAN channel ID를 항상 8자리 big-endian hexadecimal 값으로 읽습니다.