STRUCT V4L2_SUBDEV_FRAME_INTERVAL(9)
π struct v4l2_subdev_frame_interval(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes, the actual kernel API, and yes, this page is about a lil struct called v4l2_subdev_frame_interval. It's giving pad-level frame rate realness π and honestly? she's iconic.
πΈ NAME πΈ
struct v4l2_subdev_frame_interval β Pad-level frame rate π«
Like, literally just that. Pad-level frame rate. That's the whole vibe check π¦
β¨ SYNOPSIS β¨
struct v4l2_subdev_frame_interval {
__u32 pad;
struct v4l2_fract interval;
__u32 stream;
__u32 which;
__u32 reserved[7];
};
copy this exactly, no cap, do not touch the semicolons, do not "fix" the spacing π
π«Ά Members π«Ά
hh okay let's go through every single one of these, no skipping, we don't do that here π
padβ the pad number, as reported by the media API π (yes, that media API, you know the one)intervalβ the frame interval, in seconds β±οΈ (lowkey the whole point of this struct ngl)streamβ the stream number, defined in subdev routing πwhichβ the interval type, straight fromenum v4l2_subdev_format_whenceπ§reservedβ drivers and applications must zero this array π
π¨ okay this one matters, bestie β reserved genuinely has to be zeroed by drivers and applications. Both. Everybody. Zero it. That's not a suggestion, that's the rules, fr fr π«‘
π SEE ALSO π
Kernel file ./include/uapi/linux/v4l2-subdev.h β plus enum v4l2_subdev_format_whence(9) π and the whole bestie squad:
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_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 full group chat ππ read them all, iykyk
aaaand that's the page!! π source lives at ./include/uapi/linux, dated October 2026 β β mwah, sending you the biggest kiss, go forth and set your frame intervals responsibly ππ¦πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms