요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Runtime PM and binding status
sysfs-class-devlink:41-101Runtime suspend 의존성과 supplier·consumer의 bind 진행을 일곱 status로 표현하고 state 동기화에 미치는 영향을 설명합니다.
Supplier link and sync-only behavior
sysfs-class-devlink:103-130Supplier directory symbolic link와 device link의 영향을 boot 후 hardware·software state 동기화로만 제한하는 mode를 제공합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/class/devlink/.../
Date: May 2020
Contact: Saravana Kannan <[email protected]>
Description:
Provide a place in sysfs for the device link objects in the
kernel at any given time. The name of a device link directory,
denoted as ... above, is of the form <supplier>--<consumer>
where <supplier> is the supplier bus:device name and <consumer>
is the consumer bus:device name.
What: /sys/class/devlink/.../auto_remove_on
Date: May 2020
Contact: Saravana Kannan <[email protected]>
Description:
This file indicates if the device link will ever be
automatically removed by the driver core when the consumer and
supplier devices themselves are still present.
This will be one of the following strings:
- 'consumer unbind'
- 'supplier unbind'
- 'never'
'consumer unbind' means the device link will be removed when
the consumer's driver is unbound from the consumer device.
'supplier unbind' means the device link will be removed when
the supplier's driver is unbound from the supplier device.
'never' means the device link will not be automatically removed
when as long as the supplier and consumer devices themselves
are still present.
What: /sys/class/devlink/.../consumer
Date: May 2020
Contact: Saravana Kannan <[email protected]>
Description:
This file is a symlink to the consumer device's sysfs directory.
What: /sys/class/devlink/.../runtime_pm
Date: May 2020
Contact: Saravana Kannan <[email protected]>
Description:
This file indicates if the device link has any impact on the
runtime power management behavior of the consumer and supplier
devices. For example: Making sure the supplier doesn't enter
runtime suspend while the consumer is active.
This will be one of the following strings:
=== ========================================
'0' Does not affect runtime power management
'1' Affects runtime power management
=== ========================================
What: /sys/class/devlink/.../status
Date: May 2020
Contact: Saravana Kannan <[email protected]>
Description:
This file indicates the status of the device link. The status
of a device link is affected by whether the supplier and
consumer devices have been bound to their corresponding
drivers. The status of a device link also affects the binding
and unbinding of the supplier and consumer devices with their
drivers and also affects whether the software state of the
supplier device is synced with the hardware state of the
supplier device after boot up.
See also: sysfs-devices-state_synced.
This will be one of the following strings:
- 'not tracked'
- 'dormant'
- 'available'
- 'consumer probing'
- 'active'
- 'supplier unbinding'
- 'unknown'
'not tracked' means this device link does not track the status
and has no impact on the binding, unbinding and syncing the
hardware and software device state.
'dormant' means the supplier and the consumer devices have not
bound to their driver.
'available' means the supplier has bound to its driver and is
available to supply resources to the consumer device.
'consumer probing' means the consumer device is currently
trying to bind to its driver.
'active' means the supplier and consumer devices have both
bound successfully to their drivers.
'supplier unbinding' means the supplier devices is currently in
the process of unbinding from its driver.
'unknown' means the state of the device link is not any of the
above. If this is ever the value, there's a bug in the kernel.
What: /sys/class/devlink/.../supplier
Date: May 2020
Contact: Saravana Kannan <[email protected]>
Description:
This file is a symlink to the supplier device's sysfs directory.
What: /sys/class/devlink/.../sync_state_only
Date: May 2020
Contact: Saravana Kannan <[email protected]>
Description:
This file indicates if the device link is limited to only
affecting the syncing of the hardware and software state of the
supplier device.
This will be one of the following strings:
=== ================================
'0'
'1' Affects runtime power management
=== ================================
'0' means the device link can affect other device behaviors
like binding/unbinding, suspend/resume, runtime power
management, etc.
'1' means the device link will only affect the syncing of
hardware and software state of the supplier device after boot
up and doesn't not affect other behaviors of the devices.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Device link object directory
1-9| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/devlink/.../ |
| Date | 2020년 5월 |
| Contact | Saravana Kannan <[email protected]> |
| Description | 특정 시점에 kernel에 존재하는 device link object를 위한 sysfs 위치를 제공합니다. 위에서 ...로 표시한 device link directory 이름은 <supplier>--<consumer> 형식입니다. 여기서 <supplier>는 supplier의 bus:device 이름이고 <consumer>는 consumer의 bus:device 이름입니다. |
Device link 자동 제거 조건
11-33| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/devlink/.../auto_remove_on |
| Date | 2020년 5월 |
| Contact | Saravana Kannan <[email protected]> |
| Description | Consumer와 supplier device 자체가 계속 존재하는 동안에도 driver core가 device link를 자동으로 제거할 수 있는지와 그 조건을 나타냅니다. 값은 'consumer unbind', 'supplier unbind', 'never' 중 하나입니다. 'consumer unbind'는 consumer driver가 consumer device에서 unbind될 때 device link를 제거한다는 뜻입니다. 'supplier unbind'는 supplier driver가 supplier device에서 unbind될 때 device link를 제거한다는 뜻입니다. 'never'는 supplier와 consumer device 자체가 존재하는 동안 device link를 자동으로 제거하지 않는다는 뜻입니다. |
Device가 남아 있는 상태에서 driver unbind가 link 제거에 미치는 영향을 정리합니다.
Consumer device link
35-39| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/devlink/.../consumer |
| Date | 2020년 5월 |
| Contact | Saravana Kannan <[email protected]> |
| Description | Consumer device의 sysfs directory를 가리키는 symbolic link입니다. |
Runtime power management 영향
41-55| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/devlink/.../runtime_pm |
| Date | 2020년 5월 |
| Contact | Saravana Kannan <[email protected]> |
| Description | Device link가 consumer와 supplier device의 runtime power management 동작에 영향을 주는지를 나타냅니다. 예를 들어 consumer가 active인 동안 supplier가 runtime suspend에 진입하지 못하게 할 수 있습니다. 값은 '0' 또는 '1'입니다. |
Device link의 runtime power management 영향 여부입니다.
Device link 상태
57-101| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/devlink/.../status |
| Date | 2020년 5월 |
| Contact | Saravana Kannan <[email protected]> |
| Description | Device link의 상태를 나타냅니다. 이 상태는 supplier와 consumer device가 각각의 driver에 bind되었는지에 따라 달라집니다. 또한 device link 상태는 supplier·consumer device와 driver의 bind·unbind에 영향을 주며, boot 후 supplier device의 software state를 hardware state와 동기화할지에도 영향을 줍니다. sysfs-devices-state_synced도 참조하십시오. 값은 'not tracked', 'dormant', 'available', 'consumer probing', 'active', 'supplier unbinding', 'unknown' 중 하나입니다. 'not tracked'는 이 device link가 상태를 추적하지 않으며 bind, unbind, hardware·software device state 동기화에 영향을 주지 않는다는 뜻입니다. 'dormant'는 supplier와 consumer device가 모두 driver에 bind되지 않았다는 뜻입니다. 'available'은 supplier가 driver에 bind되어 consumer device에 resource를 제공할 수 있다는 뜻입니다. 'consumer probing'은 consumer device가 현재 driver에 bind하려고 시도하는 중이라는 뜻입니다. 'active'는 supplier와 consumer device가 모두 각 driver에 성공적으로 bind되었다는 뜻입니다. 'supplier unbinding'은 supplier device가 현재 driver에서 unbind되는 중이라는 뜻입니다. 'unknown'은 device link 상태가 앞의 어느 상태에도 해당하지 않는다는 뜻이며, 이 값이 나타난다면 kernel bug입니다. |
Supplier·consumer의 bind 진행 상태와 link가 미치는 영향을 상태별로 정리합니다.
Supplier device link
103-107| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/devlink/.../supplier |
| Date | 2020년 5월 |
| Contact | Saravana Kannan <[email protected]> |
| Description | Supplier device의 sysfs directory를 가리키는 symbolic link입니다. |
Supplier state 동기화 전용 link
109-130| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/devlink/.../sync_state_only |
| Date | 2020년 5월 |
| Contact | Saravana Kannan <[email protected]> |
| Description | Device link의 영향이 supplier device의 hardware state와 software state 동기화로만 제한되는지를 나타냅니다. 값은 '0' 또는 '1'입니다. 원문 표에는 '0'의 설명이 비어 있고 '1' 옆에 'Affects runtime power management'가 적혀 있습니다. 이어지는 원문 설명에 따르면 '0'은 device link가 bind·unbind, suspend·resume, runtime power management 등 다른 device 동작에도 영향을 줄 수 있다는 뜻입니다. '1'은 boot 후 supplier device의 hardware·software state 동기화에만 영향을 주고 device의 다른 동작에는 영향을 주지 않는다는 뜻입니다. |
원문 표의 문구와 뒤따르는 상세 설명을 함께 보존합니다.
Link identity, removal, and consumer
sysfs-class-devlink:1-39<supplier>--<consumer> directory 형식, driver unbind에 따른 자동 제거 조건과 consumer sysfs symbolic link를 정의합니다.