STRUCT MEDIA_PIPELINE_WALK(9)
π 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 instack.entries. it's the size field, periodt.stack.topβ index of the top stack entry. it's-1if the stack is empty, so-1is 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:
dev_dbg_obj(9)media_entity_has_pad_interdep(9)media_graph_walk_init(9)media_graph_walk_cleanup(9)struct media_pipeline_walk_entry(9)
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
- 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