← Documents Documentation/ABI/testing/sysfs-bus-iio-dma-buffer GitHub 원문 ↗

Linux 6.18.37 · ABI / testing

IIO DMA buffer byte alignment

IIO DMA 버퍼에서 샘플 손실을 막기 위한 고정 바이트 정렬 요구사항과 채널별 샘플 정렬의 차이를 설명합니다.

Source pathDocumentation/ABI/testing/sysfs-bus-iio-dma-buffer
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

Stable byte boundary

sysfs-bus-iio-dma-buffer:1-19

버퍼 바이트 크기는 length_align_bytes가 보고하는 값의 정수배여야 합니다. 샘플 세트 단위 정렬은 활성 채널 구성에 따라 달라질 수 있지만 바이트 단위 요구사항은 고정됩니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 What: /sys/bus/iio/devices/iio:deviceX/buffer/length_align_bytes
2 KernelVersion: 5.4
3 Contact: linux-iio@vger.kernel.org
4 Description:
5 DMA buffers tend to have a alignment requirement for the
6 buffers. If this alignment requirement is not met samples might
7 be dropped from the buffer.
8
9 This property reports the alignment requirements in bytes.
10 This means that the buffer size in bytes needs to be a integer
11 multiple of the number reported by this file.
12
13 The alignment requirements in number of sample sets will depend
14 on the enabled channels and the bytes per channel. This means
15 that the alignment requirement in samples sets might change
16 depending on which and how many channels are enabled. Whereas
17 the alignment requirement reported in bytes by this property
18 will remain static and does not depend on which channels are
19 enabled.
20

3. 한국어 전문 번역

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

DMA 버퍼 길이 정렬

1-19
항목한국어 전문 번역
What/sys/bus/iio/devices/iio:deviceX/buffer/length_align_bytes
KernelVersion5.4
Contactlinux-iio@vger.kernel.org
DescriptionDMA 버퍼에는 대체로 버퍼 정렬 요구사항이 있습니다. 이 정렬 요구사항을 충족하지 않으면 버퍼에서 샘플이 누락될 수 있습니다. 이 속성은 정렬 요구사항을 바이트 단위로 보고합니다. 따라서 바이트 단위 버퍼 크기는 이 파일이 보고하는 수의 정수배여야 합니다. 샘플 세트 수로 표현한 정렬 요구사항은 활성화된 채널과 채널당 바이트 수에 따라 달라집니다. 즉 어떤 채널을 몇 개 활성화했는지에 따라 샘플 세트 단위 정렬 요구사항이 바뀔 수 있습니다. 반면 이 속성이 바이트 단위로 보고하는 정렬 요구사항은 고정되어 있으며 활성화된 채널에 의존하지 않습니다.