iio_dma_buffer_disable(9)
π iio_dma_buffer_disable
okay so bestie, this is a page straight out of the Kernel API Manual β like, the actual kernel, not a vibe. And the function we're stanning today is iio_dma_buffer_disable, which does exactly what it says on the tin: it disables a DMA buffer. no cap. π
β¨ SYNOPSIS β¨
int iio_dma_buffer_disable (struct iio_buffer *buffer , struct iio_dev *indio_dev );
it's giving "returns an int, takes two pointers, minds its own business." π
π«Ά ARGUMENTS π«Ά
bufferβ the IIO DMA buffer you're trying to disable. this is the main character of the whole operation. πindio_devβ the IIO device that the buffer is attached to. the plus-one, but like, essential. π¦
πΈ DESCRIPTION πΈ
so here's the tea: you gotta call this when the device that the buffer is attached to stops sampling. that's the whole assignment. π₯
and like, typically? it should be the iio_buffer_access_ops disable callback. so if you're wiring that up, this is literally your girl. iykyk. β
fr fr, don't just call it whenever β the trigger is the device stopping sampling. that's the moment. β¨
π SEE ALSO π
the kernel file that lives at:
./drivers/iio/buffer/industrialio-buffer-dma.c
and the whole friend group of related functions, all linked here so you can go down the rabbit hole:
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_read(9)iio_dma_buffer_write(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)
like, the whole squad. go say hi. π«Άπ
and that's the page, bestie! π§ this one ships out of ./drivers/iio/buffer, dated October 2026, and yes β it's iio_dma_buffer_disable(9) all the way down. slay. ππ
π¦ 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