요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Device association
sysfs-bus-iio-trigger-sysfs:13-21triggerX/name 문자열을 대상 IIO 장치의 current_trigger에 써서 trigger를 연결합니다.
Create and remove by ID
sysfs-bus-iio-trigger-sysfs:22-42add_trigger와 remove_trigger에 양의 정수 ID를 씁니다. 중복 생성이나 존재하지 않는 ID 삭제는 invalid argument를 반환합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/bus/iio/devices/triggerX/trigger_now
2
KernelVersion: 2.6.38
3
Contact: linux-iio@vger.kernel.org
4
Description:
5
This file is provided by the iio-trig-sysfs stand-alone trigger
6
driver. Writing this file with any value triggers an event
7
driven driver, associated with this trigger, to capture data
8
into an in kernel buffer. This approach can be valuable during
9
automated testing or in situations, where other trigger methods
10
are not applicable. For example no RTC or spare GPIOs.
11
X is the IIO index of the trigger.
13
What: /sys/bus/iio/devices/triggerX/name
14
KernelVersion: 2.6.39
15
Contact: linux-iio@vger.kernel.org
16
Description:
17
The name attribute holds a description string for the current
18
trigger. In order to associate the trigger with an IIO device
19
one should write this name string to
20
/sys/bus/iio/devices/iio:deviceY/trigger/current_trigger.
22
What: /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger
23
KernelVersion: 2.6.39
24
Contact: linux-iio@vger.kernel.org
25
Description:
26
This attribute is provided by the iio-trig-sysfs stand-alone
27
driver and it is used to activate the creation of a new trigger.
28
In order to achieve this, one should write a positive integer
29
into the associated file, which will serve as the id of the
30
trigger. If the trigger with the specified id is already present
31
in the system, an invalid argument message will be returned.
33
What: /sys/bus/iio/devices/iio_sysfs_trigger/remove_trigger
34
KernelVersion: 2.6.39
35
Contact: linux-iio@vger.kernel.org
36
Description:
37
This attribute is used to unregister and delete a previously
38
created trigger from the list of available triggers. In order to
39
achieve this, one should write a positive integer into the
40
associated file, representing the id of the trigger that needs
41
to be removed. If the trigger can't be found, an invalid
42
argument message will be returned to the user.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Sysfs trigger 즉시 실행
1-12| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/iio/devices/triggerX/trigger_now |
| KernelVersion | 2.6.38 |
| Contact | linux-iio@vger.kernel.org |
| Description | iio-trig-sysfs 독립형 trigger 드라이버가 제공하는 파일입니다. 아무 값이나 쓰면 이 trigger에 연결된 event-driven 드라이버가 데이터를 캡처해 커널 내부 버퍼에 넣도록 trigger합니다. 자동화 테스트나 RTC 또는 여분 GPIO가 없어 다른 trigger 방식을 적용할 수 없는 상황에 유용합니다. X는 trigger의 IIO 인덱스입니다. |
Trigger 이름과 IIO 장치 연결
13-21| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/iio/devices/triggerX/name |
| KernelVersion | 2.6.39 |
| Contact | linux-iio@vger.kernel.org |
| Description | name 속성은 현재 trigger의 설명 문자열을 담습니다. Trigger를 IIO 장치와 연결하려면 이 이름 문자열을 /sys/bus/iio/devices/iio:deviceY/trigger/current_trigger에 써야 합니다. |
새 sysfs trigger 생성
22-32| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/iio/devices/iio_sysfs_trigger/add_trigger |
| KernelVersion | 2.6.39 |
| Contact | linux-iio@vger.kernel.org |
| Description | iio-trig-sysfs 독립형 trigger 드라이버가 제공하며 새 trigger 생성을 활성화하는 데 사용합니다. 연결된 파일에 양의 정수를 쓰면 그 값이 trigger ID가 됩니다. 지정한 ID의 trigger가 이미 시스템에 있으면 invalid argument 메시지를 반환합니다. |
Sysfs trigger 등록 해제와 삭제
33-42| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/iio/devices/iio_sysfs_trigger/remove_trigger |
| KernelVersion | 2.6.39 |
| Contact | linux-iio@vger.kernel.org |
| Description | 이전에 만든 trigger를 사용 가능한 trigger 목록에서 등록 해제하고 삭제합니다. 제거할 trigger ID를 나타내는 양의 정수를 연결된 파일에 씁니다. Trigger를 찾을 수 없으면 사용자에게 invalid argument 메시지를 반환합니다. |
Manual capture event
sysfs-bus-iio-trigger-sysfs:1-12trigger_now에 아무 값이나 쓰면 연결된 event-driven 드라이버가 데이터를 커널 버퍼로 캡처합니다.