요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
What: /sys/bus/nvmem/devices/.../cells/<cell-name>
2
Date: May 2023
3
KernelVersion: 6.5
4
Contact: Miquel Raynal <[email protected]>
5
Description:
6
The "cells" folder contains one file per cell exposed by the
7
NVMEM device. The name of the file is: "<name>@<byte>,<bit>",
8
with <name> being the cell name and <where> its location in
9
the NVMEM device, in hexadecimal bytes and bits (without the
10
'0x' prefix, to mimic device tree node names). The length of
11
the file is the size of the cell (when known). The content of
12
the file is the binary content of the cell (may sometimes be
13
ASCII, likely without trailing character).
14
Note: This file is only present if CONFIG_NVMEM_SYSFS
15
is enabled.
17
Example::
19
hexdump -C /sys/bus/nvmem/devices/1-00563/cells/product-name@d,0
20
00000000 54 4e 34 38 4d 2d 50 2d 44 4e |TN48M-P-DN|
21
0000000a
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
NVMEM cells sysfs ABI: <cell-name>
1-21| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/bus/nvmem/devices/.../cells/<cell-name> |
| Date | 2023년 5월 |
| KernelVersion | 6.5 |
| Contact | Miquel Raynal <[email protected]> |
| Description | `/sys/bus/nvmem/devices/.../cells/<cell-name>`의 `cells` folder에는 NVMEM device가 expose한 cell마다 file 하나가 있습니다. File name 형식은 `"<name>@<byte>,<bit>"`이며 `<name>`은 cell name, `<where>`는 NVMEM device 안의 위치를 hexadecimal bytes와 bits로 나타냅니다. Device tree node names를 모방하기 위해 `0x` prefix는 쓰지 않습니다. File length는 size를 아는 경우 cell size이고, file content는 cell의 binary content입니다. Content가 ASCII인 경우도 있으며 trailing character가 없을 가능성이 큽니다. 이 file은 `CONFIG_NVMEM_SYSFS`가 enable된 경우에만 존재합니다. |
PartRepresentationExample
Name<name>product-name
Byte location<byte> in hex, no 0xd
Bit location<bit> in hex, no 0x0
ContentBinary, sometimes ASCIITN48M-P-DN
File name과 file 자체가 cell identity, location, size와 payload를 함께 나타냅니다.
hexdump -C /sys/bus/nvmem/devices/1-00563/cells/product-name@d,0
00000000 54 4e 34 38 4d 2d 50 2d 44 4e |TN48M-P-DN|
0000000a
Cell 위치와 binary payload
sysfs-nvmem-cells:1-21Cell 이름과 byte·bit 위치를 device-tree 방식 file name으로 표현하고 cell의 실제 binary bytes를 읽게 합니다.