iio_dma_buffer_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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