media_pipeli..._each_entity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… media_pipeli..._each_entity(9)

okay so this is media_pipeli..._each_entity(9) from the Kernel API Manual, and it’s giving β€œwalk the whole media pipeline, bestie” energy. No cap, every detail is staying in here. ✨

🌸 NAME 🌸

media_pipeline_for_each_entity β€” iterate on all entities in a media pipeline πŸŒ€

🩷 SYNOPSIS 🩷

media_pipeline_for_each_entity (pipe , iter , entity );

🫢 ARGUMENTS 🫢

  • pipe β€” the pipeline πŸ’«
  • iter β€” the iterator (struct media_pipeline_entity_iter) πŸŽ€
  • entity β€” the iterator entity πŸ‘‘

🌸 DESCRIPTION 🌸

okay so media_pipeline_for_each_entity iterates on all entities in a media pipeline. The vibe check is strict: this is only valid after the pipeline has been built with media_pipeline_start and before it gets destroyed with media_pipeline_stop 🚨

Truly do not skip the iterator admin, bestie: the iterator must be initialized with media_pipeline_entity_iter_init before iteration, and destroyed with media_pipeline_entity_iter_cleanup after β€” including in code paths that break from the loop 😭 That cleanup is not optional, iykyk.

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./include/media/media-entity.h β€” and the whole squad, in original order:


source/version: ./include/media Β· date: October 2026 Β· mwah, go clean up your iterator πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from