STRUCT V4L2_MBUS_FRAME_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct v4l2_mbus_frame_desc(9) πŸ’…

okay so bestie, this is a page straight out of the Kernel API Manual β€” welcome to the media bus frame description era of your life. no cap, it's a struct, it's small, and it eats. let's get into it 🫢


✨ NAME ✨

struct v4l2_mbus_frame_desc β€” media bus data frame description. yes that's the whole name section, she's brief and she knows it πŸ’…


🌸 SYNOPSIS 🌸

here's the whole glow-up, character for character, do not touch:

struct v4l2_mbus_frame_desc {
    enum v4l2_mbus_frame_desc_type type;
    struct v4l2_mbus_frame_desc_entry entry[V4L2_FRAME_DESC_ENTRY_MAX];
    unsigned short num_entries;
 };

it's giving "three members and a dream" 😭


πŸŽ€ Members πŸŽ€

  • type β€” the type of the bus. literally, that's what it is: an enum v4l2_mbus_frame_desc_type. she tells you what kind of bus you're on 🚌
  • entry β€” the frame descriptors array. iconic array energy, it's where the actual frame description entries live ✨
  • num_entries β€” an unsigned short counting how many entries are actually chillin' in the entry array. vibe check for the array length πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, buckle up, this list is long and she is thriving. first off, the source of truth is the kernel file ./include/media/v4l2-subdev.h. and then, in no particular order (okay, in this exact order πŸ’–):

that's the whole squad, no one left behind πŸ’œ


ngl bestie, read the entries before you trust num_entries β€” she's an unsigned short and she's doing her best, but she only tells you how many of the V4L2_FRAME_DESC_ENTRY_MAX slots are real 🌈

and that's the page!! 🧚 this lil cutie lives in ./include/media and this version is dated October 2026 β€” mwah, go forth and describe those frames, main character πŸ’–πŸŽ€

πŸ“¦ where this page comes from