v4l2_subdev_...ing_with_fmt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_subdev_set_routing_with_fmt β€” kernel API manual, section 9, bestie

okay so picture this: it's a Linux kernel API manual page, section 9, and the star of the show is v4l2_subdev_set_routing_with_fmt. Yeah the title gets abbreviated in the header, but we're saying the whole thing. Periodt. ✨


🌸 NAME 🌸

v4l2_subdev_set_routing_with_fmt β€” sets the given routing and the format onto the subdev state. Two-for-one deal, we love to see it. 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

int v4l2_subdev_set_routing_with_fmt (struct v4l2_subdev *sd , struct
v4l2_subdev_state *state , const struct v4l2_subdev_krouting *routing ,
const struct v4l2_mbus_framefmt *fmt );

like, that's the whole incantation. copy it exactly, don't be creative with it bestie πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • sd β€” the subdevice itself. our main character πŸ‘‘
  • state β€” the subdevice state. the situation it's in, if you will 🌈
  • routing β€” the routing that's gonna get copied into the subdev state. it's giving "duplicate and file it away" πŸ’…
  • fmt β€” the format used to initialize all the streams. every single one. no stream left behind πŸ₯Ί

⭐ DESCRIPTION ⭐

so here's the tea: this is exactly the same as v4l2_subdev_set_routing, except it also initializes all the streams using the given format. that's it, that's the delta. same energy, extra step, iconic behavior honestly πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

the friend group. the whole roster. the group chat is like 70 people deep and every single one of them is here, no skips πŸ™ˆ

the kernel file ./include/media/v4l2-subdev.h, plus:


and that's the page!! 🧚 source is ./include/media, dated October 2026, and it's from the Kernel API Manual β€” mwah, go read the kernel source bestie, ily, bye πŸ’–πŸ“

πŸ“¦ where this page comes from