v4l2_subdev_set_routing(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… v4l2_subdev_set_routing(9) πŸ’…

okay bestie, you're looking at the Kernel API Manual page for v4l2_subdev_set_routing(9) β€” manual name folded in right at the top, because we're cute like that. This is the one about setting a given routing on a subdev state. very kernel, very niche, very slay βœ¨πŸ’–


🌸 NAME 🌸

v4l2_subdev_set_routing β€” set given routing to subdev state πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int v4l2_subdev_set_routing (struct v4l2_subdev *sd , struct
       v4l2_subdev_state *state , const struct v4l2_subdev_krouting *routing );

πŸŽ€ ARGUMENTS πŸŽ€

  • sd β€” The subdevice. Main character subdevice energy, periodt. πŸ‘‘
  • state β€” The subdevice state. This is the state bestie we're working with. πŸ’œ
  • routing β€” Routing that will be copied to subdev state. It's giving incoming routing, and it's about to get copied. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the lowkey tea: this will release the old routing table (if any) from the state, allocate enough space for the given routing, and copy the routing. No cap, that's the whole flow β€” old table out if there is one, enough space in, new routing copied. 🫢✨

This can be used from the subdev driver's set_routing op, after validating the routing. So validate first, then call this, bestie β€” the manual says it right there, and we're not inventing extra rules. πŸ’–


πŸ’– SEE ALSO πŸ’–

okay these are the linked icons β€” all of them, no skipping, because we keep every detail. πŸŽ€πŸ¦‹

kisses πŸ’‹ β€” this page is from the source/version ./include/media, dated October 2026, and it's literally v4l2_subdev_set_routing(9) πŸ«ΆπŸ’–

πŸ“¦ where this page comes from