iio_dma_buf...k_list_abort(9)
πΈ 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 fromqueue. 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:
- sets
bytes_usedto0for each block in the list π - 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):
iio_dma_buffer_block_done(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_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)
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
- 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