iio_dma_buff...es_per_datum(9)
πΈ iio_dma_buffer_set_bytes_per_datum β the manual, but make it make sense π
okay so bestie, this is a page from the Kernel API Manual (yes, the kernel, we're fancy now) and it's about iio_dma_buffer_set_bytes_per_datum β¨
β¨ NAME β¨
iio_dma_buffer_set_bytes_per_datum β the DMA buffer's set_bytes_per_datum callback, no cap π«Ά
π¦ SYNOPSIS π¦
int iio_dma_buffer_set_bytes_per_datum (struct iio_buffer *buffer ,
size_t bpd );
π ARGUMENTS π
bufferβ the buffer you're setting the bytes-per-datum for. literally the main character here πbpdβ the new bytes-per-datum value. the glow-up number fr fr π₯
π DESCRIPTION π
okay so here's the vibe: you should use this as the set_bytes_per_datum callback for the iio_buffer_access_ops struct when you're dealing with DMA buffers. that's it, that's the whole assignment π
periodt.
π SEE ALSO π
- Kernel file
./drivers/iio/buffer/industrialio-buffer-dma.cβ the source, go read it bestie π iio_dma_buffer_block_done(9)iio_dma_buffer_block_list_abort(9)iio_dma_buffer_request_update(9)iio_dma_buffer_enable(9)iio_dma_buffer_disable(9)iio_dma_buffer_read(9)iio_dma_buffer_write(9)iio_dma_buffer_usage(9)iio_dma_buffer_set_length(9)iio_dma_buffer_init(9)iio_dma_buffer_exit(9)iio_dma_buffer_release(9)
like, the whole friend group, iykyk π
ngl there's not a ton here, but that's on purpose β it's a callback, not a whole saga π
and that's the page, bestie! π this one's living in ./drivers/iio/buffer and it's dated October 2026 β yes, 2026, don't ask me, I just read the footer ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms