vimc_get_source_entity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– vimc_get_source_entity β€” kernel API manual, but make it make sense πŸ’–

okay so bestie, welcome to the Kernel API Manual page for vimc_get_source_entity(9) β€” yes that (9) means section 9, the kernel-dev section, we love a section number moment πŸŽ€


✨ NAME ✨

vimc_get_source_entity β€” literally just: get the entity that's connected to the first sink pad 🫢


🌸 SYNOPSIS 🌸

struct media_entity * vimc_get_source_entity (struct media_entity *ent );

that's it. one argument. we love a minimal signature ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ent β€” the reference media_entity, aka the entity you're starting your little investigation from πŸ”

πŸ’… DESCRIPTION πŸ’…

so this is a helper function, right? it returns the media entity that contains the source pad linked with the first sink pad from the given media entity's pad list. like, you hand it an entity, it goes "bestie, who's on the other side of your first sink pad?" and tells you. no cap πŸ’…βœ¨


πŸ“ RETURN πŸ“

the source pad, or NULL if it wasn't found 😭 (which, honestly, happens β€” sometimes the link just isn't there, and that's valid)


πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./drivers/media/test-drivers/vimc/vimc-streamer.c β€” go read the source, iykyk πŸ“–


and that's the page, bestie 🧚 this one lives in ./drivers/media/test-drivers/vimc, dated October 2026 β€” bookmark it, screenshot it, tattoo it on your forearm, whatever works for you πŸ’œπŸ”₯

πŸ“¦ where this page comes from