← Documents Documentation/ABI/testing/sysfs-driver-st GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

SCSI tape debug sysfs ABI

SCSI tape st driver의 debug output을 0/1로 끄고 켜는 debug_flag와 compile-time DEBUG support에 따른 attribute visibility를 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-driver-st
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Conditional SCSI tape debug output

sysfs-driver-st:1-12

debug_flag는 0/1로 output을 제어하지만 module이 non-zero DEBUG로 compile된 경우에만 sysfs에 나타납니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/bus/scsi/drivers/st/debug_flag
2 Date: October 2015
3 KernelVersion: ?.?
5 Description:
6 This file allows you to turn debug output from the st driver
7 off if you write a '0' to the file or on if you write a '1'.
8 Note that debug output requires that the module be compiled
9 with the #define DEBUG set to a non-zero value (this is the
10 default). If DEBUG is set to 0 then this file will not
11 appear in sysfs as its presence is conditional upon debug
12 output support being compiled into the module.
13

3. 한국어 전문 번역

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

SCSI tape driver debug output

1-12
항목한국어 전문 번역
What/sys/bus/scsi/drivers/st/debug_flag
Date2015년 10월
KernelVersion?.?
Contact[email protected]
DescriptionFile에 '0'을 쓰면 st driver의 debug output을 끄고 '1'을 쓰면 켭니다. Debug output을 사용하려면 module이 #define DEBUG를 non-zero value로 두고 compile되어야 하며 이것이 default입니다. DEBUG가 0이면 debug output support가 module에 compile되어 있지 않으므로 이 file은 sysfs에 나타나지 않습니다.
AccessRead-write
Values0 = off; 1 = on
VisibilityOnly when debug output support is compiled in
st debug_flag availability
Compile-time DEBUGsysfs fileRuntime values
Non-zero (default)Present0 off; 1 on
0AbsentNot available

Compile-time DEBUG와 runtime debug_flag의 관계입니다.