vimc_get_source_entity(9)
π 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 referencemedia_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 π
vimc_streamer_pipeline_terminate(9)vimc_streamer_pipeline_init(9)vimc_streamer_get_sensor(9)vimc_streamer_thread(9)vimc_streamer_s_stream(9)
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
- 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