요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Character-device와 video link
configfs-most:12-120most_cdev와 most_video link는 같은 channel buffer·datatype·direction·transport·attachment·lifecycle attribute 집합을 제공합니다.
Network component link
configfs-most:122-175most_net link에도 동일한 channel configuration과 create_link·destroy_link 제어가 제공됩니다.
ALSA sound card와 channel link
configfs-most:177-241Sound component는 card registration을 먼저 제어하고 card 아래의 각 link에 공통 channel attribute를 적용합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/kernel/config/most_<component>
Date: March 8, 2019
KernelVersion: 5.2
Description: Interface is used to configure and connect device channels
to component drivers.
Attributes are visible only when configfs is mounted. To mount
configfs in /sys/kernel/config directory use:
# mount -t configfs none /sys/kernel/config/
What: /sys/kernel/config/most_cdev/<link>
Date: March 8, 2019
KernelVersion: 5.2
Description:
The attributes:
buffer_size
configure the buffer size for this channel
subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochronous data)
num_buffers
configure number of buffers used for this
channel
datatype
configure type of data that will travel over
this channel
direction
configure whether this link will be an input
or output
dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only)
packets_per_xact
configure the number of packets that will be
collected from the network before being
transmitted via USB (this is used for USB
communication only)
device
name of the device the link is to be attached to
channel
name of the channel the link is to be attached to
comp_params
pass parameters needed by some components
create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative
configuration, the creation is post-poned until
a physical device is being attached to the bus.
destroy_link
write '1' to this attribute to destroy an
active link
What: /sys/kernel/config/most_video/<link>
Date: March 8, 2019
KernelVersion: 5.2
Description:
The attributes:
buffer_size
configure the buffer size for this channel
subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochronous data)
num_buffers
configure number of buffers used for this
channel
datatype
configure type of data that will travel over
this channel
direction
configure whether this link will be an input
or output
dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only)
packets_per_xact
configure the number of packets that will be
collected from the network before being
transmitted via USB (this is used for USB
communication only)
device
name of the device the link is to be attached to
channel
name of the channel the link is to be attached to
comp_params
pass parameters needed by some components
create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative
configuration, the creation is post-poned until
a physical device is being attached to the bus.
destroy_link
write '1' to this attribute to destroy an
active link
What: /sys/kernel/config/most_net/<link>
Date: March 8, 2019
KernelVersion: 5.2
Description:
The attributes:
buffer_size
configure the buffer size for this channel
subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochronous data)
num_buffers
configure number of buffers used for this
channel
datatype
configure type of data that will travel over
this channel
direction
configure whether this link will be an input
or output
dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only)
packets_per_xact
configure the number of packets that will be
collected from the network before being
transmitted via USB (this is used for USB
communication only)
device
name of the device the link is to be attached to
channel
name of the channel the link is to be attached to
comp_params
pass parameters needed by some components
create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative
configuration, the creation is post-poned until
a physical device is being attached to the bus.
destroy_link
write '1' to this attribute to destroy an
active link
What: /sys/kernel/config/most_sound/<card>
Date: March 8, 2019
KernelVersion: 5.2
Description:
The attributes:
create_card
write '1' to this attribute to trigger the
registration of the sound card with the ALSA
subsystem.
What: /sys/kernel/config/most_sound/<card>/<link>
Date: March 8, 2019
KernelVersion: 5.2
Description:
The attributes:
buffer_size
configure the buffer size for this channel
subbuffer_size
configure the sub-buffer size for this channel
(needed for synchronous and isochronous data)
num_buffers
configure number of buffers used for this
channel
datatype
configure type of data that will travel over
this channel
direction
configure whether this link will be an input
or output
dbr_size
configure DBR data buffer size (this is used
for MediaLB communication only)
packets_per_xact
configure the number of packets that will be
collected from the network before being
transmitted via USB (this is used for USB
communication only)
device
name of the device the link is to be attached to
channel
name of the channel the link is to be attached to
comp_params
pass parameters needed by some components
create_link
write '1' to this attribute to trigger the
creation of the link. In case of speculative
configuration, the creation is post-poned until
a physical device is being attached to the bus.
destroy_link
write '1' to this attribute to destroy an
active link
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
MOST device channel과 component driver 연결
1-9| 항목 | 내용 |
|---|---|
| What | /sys/kernel/config/most_<component> |
| Date | 2019년 3월 8일 |
| KernelVersion | 5.2 |
| Description | 이 interface는 device channel을 구성하고 component driver에 연결하는 데 사용한다. |
Attribute는 configfs가 mount되어 있을 때만 보인다. `/sys/kernel/config` directory에 configfs를 mount하려면 다음 명령을 사용한다.
# mount -t configfs none /sys/kernel/config/
Character-device component link
12-65| 항목 | 내용 |
|---|---|
| What | /sys/kernel/config/most_cdev/<link> |
| Date | 2019년 3월 8일 |
| KernelVersion | 5.2 |
| Attribute | 설명 |
|---|---|
| buffer_size | 이 channel의 buffer 크기를 구성한다. |
| subbuffer_size | 이 channel의 sub-buffer 크기를 구성한다. Synchronous 및 isochronous data에 필요하다. |
| num_buffers | 이 channel에서 사용하는 buffer 수를 구성한다. |
| datatype | 이 channel을 통해 이동할 data의 type을 구성한다. |
| direction | 이 link가 input인지 output인지 구성한다. |
| dbr_size | DBR data buffer 크기를 구성한다. MediaLB 통신에만 사용한다. |
| packets_per_xact | USB를 통해 전송하기 전에 network에서 모을 packet 수를 구성한다. USB 통신에만 사용한다. |
| device | Link를 attach할 device의 이름이다. |
| channel | Link를 attach할 channel의 이름이다. |
| comp_params | 일부 component가 필요로 하는 parameter를 전달한다. |
| create_link | `1`을 쓰면 link 생성을 시작한다. Speculative configuration에서는 physical device가 bus에 attach될 때까지 생성을 연기한다. |
| destroy_link | `1`을 쓰면 active link를 제거한다. |
Video component link
67-120| 항목 | 내용 |
|---|---|
| What | /sys/kernel/config/most_video/<link> |
| Date | 2019년 3월 8일 |
| KernelVersion | 5.2 |
| Attribute | 설명 |
|---|---|
| buffer_size | 이 channel의 buffer 크기를 구성한다. |
| subbuffer_size | 이 channel의 sub-buffer 크기를 구성한다. Synchronous 및 isochronous data에 필요하다. |
| num_buffers | 이 channel에서 사용하는 buffer 수를 구성한다. |
| datatype | 이 channel을 통해 이동할 data의 type을 구성한다. |
| direction | 이 link가 input인지 output인지 구성한다. |
| dbr_size | DBR data buffer 크기를 구성한다. MediaLB 통신에만 사용한다. |
| packets_per_xact | USB를 통해 전송하기 전에 network에서 모을 packet 수를 구성한다. USB 통신에만 사용한다. |
| device | Link를 attach할 device의 이름이다. |
| channel | Link를 attach할 channel의 이름이다. |
| comp_params | 일부 component가 필요로 하는 parameter를 전달한다. |
| create_link | `1`을 쓰면 link 생성을 시작한다. Speculative configuration에서는 physical device가 bus에 attach될 때까지 생성을 연기한다. |
| destroy_link | `1`을 쓰면 active link를 제거한다. |
Network component link
122-175| 항목 | 내용 |
|---|---|
| What | /sys/kernel/config/most_net/<link> |
| Date | 2019년 3월 8일 |
| KernelVersion | 5.2 |
| Attribute | 설명 |
|---|---|
| buffer_size | 이 channel의 buffer 크기를 구성한다. |
| subbuffer_size | 이 channel의 sub-buffer 크기를 구성한다. Synchronous 및 isochronous data에 필요하다. |
| num_buffers | 이 channel에서 사용하는 buffer 수를 구성한다. |
| datatype | 이 channel을 통해 이동할 data의 type을 구성한다. |
| direction | 이 link가 input인지 output인지 구성한다. |
| dbr_size | DBR data buffer 크기를 구성한다. MediaLB 통신에만 사용한다. |
| packets_per_xact | USB를 통해 전송하기 전에 network에서 모을 packet 수를 구성한다. USB 통신에만 사용한다. |
| device | Link를 attach할 device의 이름이다. |
| channel | Link를 attach할 channel의 이름이다. |
| comp_params | 일부 component가 필요로 하는 parameter를 전달한다. |
| create_link | `1`을 쓰면 link 생성을 시작한다. Speculative configuration에서는 physical device가 bus에 attach될 때까지 생성을 연기한다. |
| destroy_link | `1`을 쓰면 active link를 제거한다. |
ALSA sound card 등록
177-186| 항목 | 내용 |
|---|---|
| What | /sys/kernel/config/most_sound/<card> |
| Date | 2019년 3월 8일 |
| KernelVersion | 5.2 |
| create_card | 이 attribute에 `1`을 쓰면 ALSA subsystem에 sound card 등록을 시작한다. |
Sound card 아래의 component link
188-241| 항목 | 내용 |
|---|---|
| What | /sys/kernel/config/most_sound/<card>/<link> |
| Date | 2019년 3월 8일 |
| KernelVersion | 5.2 |
| Attribute | 설명 |
|---|---|
| buffer_size | 이 channel의 buffer 크기를 구성한다. |
| subbuffer_size | 이 channel의 sub-buffer 크기를 구성한다. Synchronous 및 isochronous data에 필요하다. |
| num_buffers | 이 channel에서 사용하는 buffer 수를 구성한다. |
| datatype | 이 channel을 통해 이동할 data의 type을 구성한다. |
| direction | 이 link가 input인지 output인지 구성한다. |
| dbr_size | DBR data buffer 크기를 구성한다. MediaLB 통신에만 사용한다. |
| packets_per_xact | USB를 통해 전송하기 전에 network에서 모을 packet 수를 구성한다. USB 통신에만 사용한다. |
| device | Link를 attach할 device의 이름이다. |
| channel | Link를 attach할 channel의 이름이다. |
| comp_params | 일부 component가 필요로 하는 parameter를 전달한다. |
| create_link | `1`을 쓰면 link 생성을 시작한다. Speculative configuration에서는 physical device가 bus에 attach될 때까지 생성을 연기한다. |
| destroy_link | `1`을 쓰면 active link를 제거한다. |
Component별 directory에서 channel 자원과 attachment 대상을 먼저 구성한 뒤 명시적인 trigger attribute로 link를 활성화한다.
MOST component configuration entry
configfs-most:1-9Configfs를 mount한 뒤 나타나는 most_<component> interface에서 device channel과 component driver의 연결을 구성합니다.