STRUCT V4L2_MBUS_CONFIG(9)
π struct v4l2_mbus_config(9) β media bus configuration π
Okay bestie, so this is a page from the Linux Kernel API Manual (Kernel API Manual, yes, that one) and it's all about the struct v4l2_mbus_config β literally the glow-up blueprint for how your media bus is configured. It's giving "one struct to describe them all" energy and honestly? Iconic. Let's get into it. π¦
β¨ SYNOPSIS β¨
struct v4l2_mbus_config {
enum v4l2_mbus_type type;
u64 link_freq;
union {
struct v4l2_mbus_config_parallel parallel;
struct v4l2_mbus_config_mipi_csi1 mipi_csi1;
struct v4l2_mbus_config_mipi_csi2 mipi_csi2;
} bus;
};
Lowkey that nested union is main character energy β it just picks which bus config struct shows up, depending on what kind of bus you're on. No cap. π
π«Ά Members π«Ά
typeβ the interface type, aka what kind of bus are we even dealing with bestie. π§link_freqβ The link frequency. Also peep theV4L2_CID_LINK_FREQcontrol for more on that. π₯busβ the bus configuration data structure (the whole little union fam lives in here). π
πΈ The bus union members πΈ
bus.parallelβ embeddedstruct v4l2_mbus_config_parallel. Used if the bus is parallel or BT.656. Old school but still slaying. πbus.mipi_csi1β embeddedstruct v4l2_mbus_config_mipi_csi1. Used if the bus is MIPI Alliance's Camera Serial Interface version 1 (MIPI CSI1) or Standard Mobile Imaging Architecture's Compact Camera Port 2 (SMIA CCP2). That's a mouthful fr fr. πbus.mipi_csi2β embeddedstruct v4l2_mbus_config_mipi_csi2. Used if the bus is MIPI Alliance's Camera Serial Interface version 2 (MIPI CSI2). The sequel that ate. β
π SEE ALSO π
So much cross-referencing, we love a well-connected struct π :
- Kernel file
./include/media/v4l2-mediabus.henumv4l2_mbus_csi2_cphy_line_orders_type(9) struct v4l2_mbus_config_mipi_csi2(9)struct v4l2_mbus_config_parallel(9)struct v4l2_mbus_config_mipi_csi1(9)enum v4l2_mbus_type(9)v4l2_fill_pix_format(9)v4l2_fill_mbus_format(9)v4l2_fill_pix_format_mplane(9)v4l2_fill_mbus_format_mplane(9)
Bestie, note it's defined in ./include/media β so if you're grepping for it, you know exactly where to look. ππ
Okay that's the whole page, slay. This cutie lives in the Kernel API Manual, dated October 2026, and it's the struct v4l2_mbus_config(9) page, sourced from ./include/media. Go be the main character of your own media bus. πππ
π¦ 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