v4l2_subdev_link_validate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the Kernel API Manual entry for v4l2_subdev_link_validate β€” yes, the name is a whole mouthful, but she knows exactly what she's doing. πŸ’…


✨ NAME ✨

v4l2_subdev_link_validate β€” validates a media link

πŸŽ€ SYNOPSIS πŸŽ€

int v4l2_subdev_link_validate (struct media_link *link );

🫢 ARGUMENTS 🫢

  • link β€” pointer to struct media_link. that's the link getting its vibe check, bestie.

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: this function calls the subdev's link_validate ops to validate if a media link is valid for streaming. It also internally calls v4l2_subdev_link_validate_default to ensure that width, height and the media bus pixel code are equal on both source and sink of the link. literally making sure both ends are matching, no awkward mismatches. ✨

The function can be used as a drop-in media_entity_ops.link_validate implementation for v4l2_subdev instances. It supports all links between subdevs, as well as links between subdevs and video devices, provided that the video devices also implement their media_entity_ops.link_validate operation. so yeah, she's flexible like that β€” but only if the video devices do their part too. 🫢

🌈 SEE ALSO 🌈

this is a long guest list, but every single name matters:


that's the whole page, bestie β€” sourced from ./include/media, dated October 2026, and it's literally the v4l2_subdev_link_validate(9) entry. πŸ’–βœ¨

πŸ“¦ where this page comes from