ENUM IRIS_INST_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

ok so enum iris_inst_state β€” and bestie, the manpage literally gives you nothing after the dash 😭 like the description line is just empty. iconic of it honestly. it's a kernel enum that tracks what state a video instance is in, and the constants below are the whole story. keep reading, it slaps. πŸ¦‹


✨ SYNOPSIS ✨

enum iris_inst_state {
    IRIS_INST_DEINIT ,
    IRIS_INST_INIT ,
    IRIS_INST_INPUT_STREAMING ,
    IRIS_INST_OUTPUT_STREAMING ,
    IRIS_INST_STREAMING ,
    IRIS_INST_ERROR

};

like, that's the whole enum. six states, zero chill. 🌈


πŸŽ€ Constants πŸŽ€

  • IRIS_INST_DEINIT β€” the video instance is closed. doors shut, lights off, nobody's home πŸ’€
  • IRIS_INST_INIT β€” the video instance is opened. we're so back 🫢
  • IRIS_INST_INPUT_STREAMING β€” stream on is completed on the output plane. yes, input state, output plane β€” that's what it says, don't come for me, I'm just the messenger 🧚
  • IRIS_INST_OUTPUT_STREAMING β€” stream on is completed on the capture plane. same little switcheroo energy ✨
  • IRIS_INST_STREAMING β€” stream on is completed on both output and capture planes. the full slay, both planes, no notes πŸ‘‘
  • IRIS_INST_ERROR β€” the error state. and then the manpage just... hands you this beautiful little diagram, which I am reproducing exactly because it's giving chaotic art-house cinema and I refuse to touch it 🎬
       IRIS_INST_ERROR
                   error state.  | V ------------- +--------|     INIT
                   |----------+ |         -------------           | |
                   ^   ^                | |           /                    | |
                   /                     | |         v          v            |
                   |   -----------    -----------    | |   |   INPUT
                   OUTPUT  |   | |---| STREAMING     STREAMING |---| |
                   -----------    -----------    | |       ^            ^
                   | |                   /            | |                  /
                   | |           v      v              | |
                   -------------           | |--------|  STREAMING
                   |-----------| |        -------------            | |
                   |                 | |               |                 | |
                   v                 | |          -----------            |
                   +-------->|  DEINIT   |<----------+ |          -----------
                   | |               |                 | |               |
                   | |               v                 | |          ----------
                   | +-------->|   ERROR |<------------+ ----------
ngl that diagram is doing a lot β€” it's the state machine showing INIT, INPUT STREAMING, OUTPUT STREAMING, STREAMING, DEINIT and ERROR all pointing at each other. vibe check: severely unhinged but we respect it πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

  • the kernel file ./drivers/media/platform/qcom/iris/iris_state.h, where this enum lives, bestie β€” go read it, it's right there πŸ“
  • enum iris_core_state(9) β€” the core-state sibling πŸ’œ
  • enum iris_inst_sub_state(9) β€” because one state enum was apparently not enough, and honestly? obsessed ⭐

and that's the whole page, no cap πŸ’– this lil' slice of the Kernel API Manual is brought to you by the source path ./drivers/media/platform/qcom/... and dated October 2026 β€” see you in the next state transition, bestie! πŸ˜­πŸ’…πŸŒΈ

πŸ“¦ where this page comes from