iio_dma_buffer_write(9)
π iio_dma_buffer_write β the DMA buffer write callback, bestie β¨
Okay so we're in the iio_dma_buffer_write(9) girlies today β this is a page from the Kernel API Manual, and it's short but iconic. Sit down, grab a strawberry π, let's get into it.
πΈ NAME πΈ
iio_dma_buffer_write β the DMA buffer write callback. That's the whole vibe. π
β¨ SYNOPSIS β¨
int iio_dma_buffer_write (struct iio_buffer *buffer , size_t n , const
char __user *user_buffer );
Three args, one int back, no cap. π«Ά
π ARGUMENTS π
bufferβ the buffer you're writing to. The main character, honestly. β¨nβ the number of bytes to read. Yes, it says read β that's literally the wording on this page, iykyk, we don't edit the lore. πuser_bufferβ the userspace buffer you're copying the data from. So the data comes out of here and goes in over there. π«
π DESCRIPTION π
Lowkey the whole job of this function is: be the write callback for the iio_buffer_access_ops struct, but specifically for DMA buffers. That's it, that's the assignment. Show up, be the callback, slay. π
No extra deets here, bestie β the page is a short one and we're not out here inventing behaviour. π
π¦ SEE ALSO π¦
First up, the kernel file it lives in, fr fr:
- Kernel file
./drivers/iio/buffer/industrialio-buffer-dma.c
And the whole friend group of related functions β they all show up together, periodt:
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_usage(9)iio_dma_buffer_set_bytes_per_datum(9)iio_dma_buffer_set_length(9)iio_dma_buffer_init(9)iio_dma_buffer_exit(9)iio_dma_buffer_release(9)
Okayyy that's the page! π§ββοΈ It ships out of ./drivers/iio/buffer and the date on it is October 2026 β so yes, this manpage is time-travelling from the future, ngl, we love a mysterious icon π₯. Go be somebody's write callback. Mwah. ππ
π¦ 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