STRUCT V4L2_SUBDEV_ROUTE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

Okay so this is struct v4l2_subdev_route(9), straight outta the Kernel API Manual, bestie. It describes a route inside a subdev β€” that’s literally the whole vibe. A tiny route struct living its main character life inside a subdev. πŸ’…βœ¨

✨ SYNOPSIS ✨

Here’s the exact shape, no cap:

       struct v4l2_subdev_route {
           __u32 sink_pad;
           __u32 sink_stream;
           __u32 source_pad;
           __u32 source_stream;
           __u32 flags;
           __u32 reserved[5];
        };

πŸ’… Members πŸ’…

  • sink_pad β€” the sink pad index. That’s it, that’s the field. 🫢
  • sink_stream β€” the sink stream identifier.
  • source_pad β€” the source pad index.
  • source_stream β€” the source stream identifier.
  • flags β€” route flags, and they’re literally V4L2_SUBDEV_ROUTE_FL_*.
  • reserved β€” drivers and applications must zero this array. Not optional, not a suggestion, not a maybe. It’s giving β€œzero it or else” energy. 😭

🌈 SEE ALSO 🌈

  • Kernel file ./include/uapi/linux/v4l2-subdev.h enum v4l2_subdev_format_whence(9)
  • struct v4l2_subdev_format(9)
  • struct v4l2_subdev_crop(9)
  • struct v4l2_subdev_mbus_code_enum(9)
  • struct v4l2_subdev_frame_size_enum(9)
  • struct v4l2_subdev_frame_interval(9)
  • struct v4l2_subdev_frame_interval_enum(9)
  • struct v4l2_subdev_selection(9)
  • struct v4l2_subdev_capability(9)
  • struct v4l2_subdev_routing(9)
  • struct v4l2_subdev_client_capability(9)

And that’s the tea πŸ“: this page lives at ./include/uapi/linux, it’s dated October 2026, and the footer title is struct v4l2_subdev_route(9). Go forth and zero your reserved array, bestie. πŸ’–βœ¨

πŸ“¦ where this page comes from