STRUCT MEDIA_PIPELINE_WALK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct media_pipeline_walk(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” we're looking at the state that the media pipeline traversal algorithm uses. literally just the state struct, no cap. 🫢


✨ NAME ✨

struct media_pipeline_walk β€” state used by the media pipeline traversal algorithm. that's the whole name line, bestie: it's the lil state bundle for traversal. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the struct, exact, do not touch the fields unless you're supposed to:

       struct media_pipeline_walk {
           struct media_device *mdev;
           struct {
             unsigned int size;
             int top;
             struct media_pipeline_walk_entry *entries;
           } stack;
        };

that's the shape. the vibe check passed. βœ…

🧡 Members 🧡

  • mdev β€” the media device. main character device energy.
  • stack β€” the depth-first search stack. yes, DFS stack, we love a traversal moment. 🌸
    • stack.size β€” number of allocated entries in stack.entries. it's the size field, periodt.
    • stack.top β€” index of the top stack entry. it's -1 if the stack is empty, so -1 is the empty-stack vibe, not a bug. 😭
    • stack.entries β€” stack entries. the actual entries field, right there.

🌈 SEE ALSO 🌈

Kernel file ./drivers/media/mc/mc-entity.c β€” and the squad you should also check:

iykyk, go read those next. 🫢


that's the whole page, bestie πŸ’– source/version: ./drivers/media/mc; date: October 2026; page: struct media_pipeline_walk(9). mwah, slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from