← Documents Documentation/ABI/testing/sysfs-class-led-trigger-tty GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

TTY LED trigger sysfs ABI

TTY device의 RX·TX activity와 CTS·DSR·DCD·RNG modem control line을 LED로 표시하는 enable 규칙을 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-class-led-trigger-tty
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

TTY device and activity

sysfs-class-led-trigger-tty:1-22

Triggering TTY 이름을 선택하고 reception·transmission activity blink를 각각 제어합니다.

Modem control lines

sysfs-class-led-trigger-tty:24-62

DCE·DTE 관계의 CTS, DSR, DCD와 incoming ring의 RNG를 평가해 line state 감지 시 LED를 켭니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 What: /sys/class/leds/<tty_led>/ttyname
2 Date: Dec 2020
3 KernelVersion: 5.10
4 Contact: linux-leds@vger.kernel.org
5 Description:
6 Specifies the tty device name of the triggering tty
7
8 What: /sys/class/leds/<tty_led>/rx
9 Date: February 2024
10 KernelVersion: 6.8
11 Description:
12 Signal reception (rx) of data on the named tty device.
13 If set to 0, the LED will not blink on reception.
14 If set to 1 (default), the LED will blink on reception.
15
16 What: /sys/class/leds/<tty_led>/tx
17 Date: February 2024
18 KernelVersion: 6.8
19 Description:
20 Signal transmission (tx) of data on the named tty device.
21 If set to 0, the LED will not blink on transmission.
22 If set to 1 (default), the LED will blink on transmission.
23
24 What: /sys/class/leds/<tty_led>/cts
25 Date: February 2024
26 KernelVersion: 6.8
27 Description:
28 CTS = Clear To Send
29 DCE is ready to accept data from the DTE.
30 If the line state is detected, the LED is switched on.
31 If set to 0 (default), the LED will not evaluate CTS.
32 If set to 1, the LED will evaluate CTS.
33
34 What: /sys/class/leds/<tty_led>/dsr
35 Date: February 2024
36 KernelVersion: 6.8
37 Description:
38 DSR = Data Set Ready
39 DCE is ready to receive and send data.
40 If the line state is detected, the LED is switched on.
41 If set to 0 (default), the LED will not evaluate DSR.
42 If set to 1, the LED will evaluate DSR.
43
44 What: /sys/class/leds/<tty_led>/dcd
45 Date: February 2024
46 KernelVersion: 6.8
47 Description:
48 DCD = Data Carrier Detect
49 DTE is receiving a carrier from the DCE.
50 If the line state is detected, the LED is switched on.
51 If set to 0 (default), the LED will not evaluate CAR (DCD).
52 If set to 1, the LED will evaluate CAR (DCD).
53
54 What: /sys/class/leds/<tty_led>/rng
55 Date: February 2024
56 KernelVersion: 6.8
57 Description:
58 RNG = Ring Indicator
59 DCE has detected an incoming ring signal on the telephone
60 line. If the line state is detected, the LED is switched on.
61 If set to 0 (default), the LED will not evaluate RNG.
62 If set to 1, the LED will evaluate RNG.
63

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Triggering TTY device

1-6
항목한국어 전문 번역
What/sys/class/leds/<tty_led>/ttyname
Date2020년 12월
KernelVersion5.10
Contactlinux-leds@vger.kernel.org
DescriptionTrigger를 발생시키는 TTY device 이름을 지정합니다.

TTY receive activity

8-14
항목한국어 전문 번역
What/sys/class/leds/<tty_led>/rx
Date2024년 2월
KernelVersion6.8
Description지정한 TTY device의 data reception(rx)을 표시합니다. 0이면 reception 시 LED가 blink하지 않고, 1(기본값)이면 reception 시 LED가 blink합니다.

TTY transmit activity

16-22
항목한국어 전문 번역
What/sys/class/leds/<tty_led>/tx
Date2024년 2월
KernelVersion6.8
Description지정한 TTY device의 data transmission(tx)을 표시합니다. 0이면 transmission 시 LED가 blink하지 않고, 1(기본값)이면 transmission 시 LED가 blink합니다.

Clear To Send state

24-32
항목한국어 전문 번역
What/sys/class/leds/<tty_led>/cts
Date2024년 2월
KernelVersion6.8
DescriptionCTS는 Clear To Send이며 DCE가 DTE의 data를 받을 준비가 되었음을 뜻합니다. 이 line state를 감지하면 LED를 켭니다. 0(기본값)이면 CTS를 평가하지 않고, 1이면 CTS를 평가합니다.

Data Set Ready state

34-42
항목한국어 전문 번역
What/sys/class/leds/<tty_led>/dsr
Date2024년 2월
KernelVersion6.8
DescriptionDSR은 Data Set Ready이며 DCE가 data를 받고 보낼 준비가 되었음을 뜻합니다. 이 line state를 감지하면 LED를 켭니다. 0(기본값)이면 DSR을 평가하지 않고, 1이면 DSR을 평가합니다.

Data Carrier Detect state

44-52
항목한국어 전문 번역
What/sys/class/leds/<tty_led>/dcd
Date2024년 2월
KernelVersion6.8
DescriptionDCD는 Data Carrier Detect이며 DTE가 DCE에서 carrier를 수신하고 있음을 뜻합니다. 이 line state를 감지하면 LED를 켭니다. 0(기본값)이면 CAR(DCD)를 평가하지 않고, 1이면 CAR(DCD)를 평가합니다.

Ring Indicator state

54-62
항목한국어 전문 번역
What/sys/class/leds/<tty_led>/rng
Date2024년 2월
KernelVersion6.8
DescriptionRNG는 Ring Indicator이며 DCE가 telephone line에서 incoming ring signal을 감지했음을 뜻합니다. 이 line state를 감지하면 LED를 켭니다. 0(기본값)이면 RNG를 평가하지 않고, 1이면 RNG를 평가합니다.
TTY LED trigger signal
속성Signal01
rxData receptionBlink 안 함Blink, 기본값
txData transmissionBlink 안 함Blink, 기본값
ctsClear To Send평가 안 함, 기본값평가
dsrData Set Ready평가 안 함, 기본값평가
dcdData Carrier DetectCAR(DCD) 평가 안 함, 기본값CAR(DCD) 평가
rngRing Indicator평가 안 함, 기본값평가

Activity signal과 modem control line의 기본 enable 상태를 함께 정리합니다.