STRUCT V4L2_SUBDEV_FRAME_INTERVAL_ENUM(9)
π struct v4l2_subdev_frame_interval_enum(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes, the actual Kernel API Manual, and today's main character is struct v4l2_subdev_frame_interval_enum, which is literally the frame interval enumeration struct. it's giving "i enumerate frame intervals and i do it gorgeously" π
πΈ NAME πΈ
struct v4l2_subdev_frame_interval_enum β Frame interval enumeration. that's the whole vibe, no cap π
π¦ SYNOPSIS π¦
struct v4l2_subdev_frame_interval_enum {
__u32 index;
__u32 pad;
__u32 code;
__u32 width;
__u32 height;
struct v4l2_fract interval;
__u32 which;
__u32 stream;
__u32 reserved[7];
};
like, look at her. she's structured. she's organized. she's an icon π
π Members π
get into the details, because every single field matters fr fr:
indexβ frame interval index during enumeration. literally the number telling you which one you're looking at during the enumeration era πpadβ pad number, as reported by the media API. not us guessing, the media API said so πββοΈcodeβ format code (MEDIA_BUS_FMT_definitions). keep it exact bestie, those definitions are named like that for a reason β¨widthβ frame width in pixels πheightβ frame height in pixels πintervalβ frame interval in seconds β±οΈ yes, seconds. don't come for me, that's what it says.whichβ interval type (fromenum v4l2_subdev_format_whence). ikyk πstreamβ stream number, defined in subdev routing πreservedβ drivers and applications must zero this array. not "should", not "maybe", must. zero it. periodt π
π«Ά real talk: that reserved array is not a suggestion, it's a rule. zero it out and everyone stays happy.
π SEE ALSO π
where else to find her friends π:
- Kernel file
./include/uapi/linux/v4l2-subdev.henum 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_selection(9)struct v4l2_subdev_capability(9)struct v4l2_subdev_route(9)struct v4l2_subdev_routing(9)struct v4l2_subdev_client_capability(9)
and that's the page, bestie π§π sign-off time: this little love letter lives in ./include/uapi/linux, dated October 2026, and it's filed under struct v4l2_...nterval_enum(9) in the Kernel API Manual. slay, go zero your reserved array, and stay iconic βπ₯π
π¦ 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