ENUM IIO_BLOCK_STATE(9)
π enum iio_block_state(9) β Kernel API Manual
okay so bestie, gather round, because today we're learning about enum iio_block_state, which is literally the state machine for a struct iio_dma_buffer_block. no cap, that's the whole vibe. it's giving "where is my DMA block right now" energy and honestly? iconic. π
β¨ SYNOPSIS β¨
here's the whole enum, looking cute and taking up space exactly like it should:
enum iio_block_state {
IIO_BLOCK_STATE_QUEUED ,
IIO_BLOCK_STATE_ACTIVE ,
IIO_BLOCK_STATE_DONE ,
IIO_BLOCK_STATE_DEAD
};
like, that's it. four states. four little moods. slay. π
πΈ CONSTANTS πΈ
each one of these is a whole personality, so let's do a vibe check on all four:
IIO_BLOCK_STATE_QUEUEDβ bestie is on the incoming queue. waiting for its moment. main character energy but make it patient. π¦IIO_BLOCK_STATE_ACTIVEβ currently being processed by the DMA. it's busy, it's thriving, do not perceive it. π₯IIO_BLOCK_STATE_DONEβ on the outgoing queue now. it ate and left no crumbs, and it's heading out. β¨IIO_BLOCK_STATE_DEADβ has been marked as to be freed. rip bozo π it's not coming back, but like, respectfully.
π SEE ALSO π
go look at the kernel file ./include/linux/iio/buffer-dma.h (fr fr, it's right there) and also these structs, which are all besties with our enum:
- struct
iio_dma_buffer_block(9) - struct
iio_dma_buffer_queue_fileio(9) - struct
iio_dma_buffer_queue(9) - struct
iio_dma_buffer_ops(9)
bestie warning: this page lives at ./include/linux/iio and it's dated October 2026, so if you're reading this from the pastβ¦ hi, how's the timeline? π«Ά
and that's the whole page! enum iio_block_state(9) β October 2026 edition, straight from ./include/linux/iio. you understood it, you ate, periodt. ππ
π¦ 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