iio_dma_buf...k_list_abort(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 iio_dma_buffer_block_list_abort β€” the NAME section, bestie 🌸

okay so this is iio_dma_buffer_block_list_abort, and it lives in the Kernel API Manual β€” yes, the whole thing is giving "I read kernel source for fun" energy and honestly? iconic. πŸ’…

What does it do? It indicates that a list block has been aborted. That's it. That's the whole vibe. A list of blocks said "not today" and this function is the one that makes it official. ✨


✨ SYNOPSIS ✨

void iio_dma_buffer_block_list_abort (struct iio_dma_buffer_queue *queue
, struct list_head *list );

no cap, that's the whole signature β€” returns void, takes two pointers, zero drama. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • queue β€” the queue for which to complete the blocks. like, the main character of this whole operation πŸ’–
  • list β€” the list of aborted blocks. and bestie, hear me: all blocks in this list must be from queue. not a different queue. not your ex's queue. this one. it's a hard requirement, periodt. ⚠️

πŸ¦‹ DESCRIPTION πŸ¦‹

So the tea is this: you typically call this from the abort callback, right after the DMA controller has been stopped. πŸ›‘

Once you're in there, it does two things and two things only:

  1. sets bytes_used to 0 for each block in the list 🌈
  2. hands the blocks back to the queue 🫢

that's the whole function. lowkey elegant, highkey essential. the way it just... cleans up and returns the blocks? obsessed. πŸ’œ


🌸 SEE ALSO 🌸

Kernel file: ./drivers/iio/buffer/industrialio-buffer-dma.c

and the whole friend group of related functions, all here so you can go read them too (iykyk):


fr fr, this page is sourced from ./drivers/iio/buffer and it's dated October 2026 β€” yes, 2026, the kernel of the future is already here and she's serving. ⭐

and that's a wrap on iio_dma_buf...k_list_abort(9) πŸ’– go forth, abort those blocks, return them to their queue, slay. πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from