ENUM V4L2_SUBDEV_FORMAT_WHENCE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum v4l2_subdev_format_whence(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ (yes, the Kernel API Manual, we're in the big leagues now) β€” this is the page for enum v4l2_subdev_format_whence, which is basically the "is this for real or are we just vibing" switch for media bus formats πŸ¦‹


🌸 NAME 🌸

enum v4l2_subdev_format_whence β€” the Media bus format type πŸŽ€ (i.e. which flavor of format you're talking about, no cap)


✨ SYNOPSIS ✨

enum v4l2_subdev_format_whence {
    V4L2_SUBDEV_FORMAT_TRY ,
    V4L2_SUBDEV_FORMAT_ACTIVE

};

that's it, that's the whole enum β€” two constants, zero drama, maximum icon behavior πŸ‘‘


🧚 Constants 🧚

  • V4L2_SUBDEV_FORMAT_TRY β€” the try format, and it's for negotiation only πŸ’¬ like, it's the "hey can we test this out, no commitment" option. it does not get applied to the device, fr fr πŸ™ˆ
  • V4L2_SUBDEV_FORMAT_ACTIVE β€” the active format, aka the one applied to the device πŸ”₯ this is the main character, it's actually happening πŸ’…
lowkey important: one of these is a rehearsal 🎭 and the other is opening night 🌟 β€” do not mix them up bestie.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/uapi/linux/v4l2-subdev.h πŸ“ plus these iconic structs, all linked and accounted for:

  • 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_route(9)
  • struct v4l2_subdev_routing(9)
  • struct v4l2_subdev_client_capability(9)

like, the whole friend group showed up to the group chat 🌈🫢


mwah πŸ’‹ that's the page! this one's living at ./include/uapi/linux, dated October 2026, and it's the enum v4l2_su...ormat_whence(9) page β€” go read it again whenever you forget which constant actually touches the device πŸ˜­πŸ‘‘

πŸ“¦ where this page comes from