v4l2_create_fwnode_links(9)
π v4l2_create_fwnode_links(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for v4l2_create_fwnode_links, and honestly? it's giving matchmaker energy. let's get into it π«Ά
πΈ NAME πΈ
v4l2_create_fwnode_links β creates fwnode-based links from a source subdev to a sink subdev π
like. it literally builds the link between two subdevices. no cap.
π SYNOPSIS π
int v4l2_create_fwnode_links (struct v4l2_subdev *src_sd , struct
struct v4l2_subdev *sink_sd );
okay wait, typos aside, the signature is:
int v4l2_create_fwnode_links(struct v4l2_subdev *src_sd, struct v4l2_subdev *sink_sd);
two subdev pointers in, an int out. simple. iconic. periodt π
π¦ ARGUMENTS π¦
src_sdβ pointer to a source subdevice β¨ the one doing the sending, the main character of the relationship nglsink_sdβ pointer to a sink subdevice πΈ the one on the receiving end, living its best receiving life
β DESCRIPTION β
so what this function actually does? it goes searching for any and all fwnode endpoint connections between the source and sink subdevices, and translates them into media links π₯ literally it's out here turning firmware descriptions into actual media graph links, which is lowkey kind of a glow-up.
and here's the vibe: the sink subdevice can be the one to call this β in its v4l2-async notifier subdev bound callback β to create all the links from a bound source subdevice π like the sink is just out here making friends the second the source appears. obsessed.
NOTE: π any sink subdevice that calls this function must implement the.get_fwnode_padmedia operation in order to verify endpoints passed to the sink are owned by the sink. no.get_fwnode_pad, no vibe check. it's mandatory bestie, don't skip it π
returns 0 on success, or a negative error code on failure. that's it. that's the return π
π SEE ALSO π
- the kernel file
./include/media/v4l2-mc.hπ v4l2_mc_create_media_graph(9)v4l_enable_media_source(9)v4l_disable_media_source(9)v4l2_create_fwnode_links_to_pad(9)v4l2_pipeline_pm_get(9)v4l2_pipeline_pm_put(9)v4l2_pipeline_link_notify(9)
all the media-graph besties in one place, iykyk π
and that's the page!! sourced from ./include/media, dated October 2026, and titled v4l2_create_fwnode_links(9) obviously π mwah, go link those subdevices, ily, bye!! π§π
π¦ 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