ENUM IIO_BLOCK_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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