STRUCT V4L2_FLASH(9)
β¨ struct v4l2_flash(9) β¨
okay bestie, welcome to the Kernel API Manual β this is the page for struct v4l2_flash, and it's literally the flash sub-device context. that's the whole vibe. let's get into it π
πΈ NAME πΈ
struct v4l2_flash β the flash sub-device context. yes, that's it, that's the name, she's iconic like that π
π¦ SYNOPSIS π¦
here's the whole struct, bestie, no gatekeeping:
struct v4l2_flash {
struct led_classdev_flash *fled_cdev;
struct led_classdev *iled_cdev;
const struct v4l2_flash_ops *ops;
struct v4l2_subdev sd;
struct v4l2_ctrl_handler hdl;
struct v4l2_ctrl **ctrls;
};
π Members π
now the member-by-member vibe check, one at a time, no skipping π₯
fled_cdevβ the LED flash class device that this sub-device controls. she's the main character being driven here π«iled_cdevβ the LED class device representing the indicator LED that's associated with the LED flash class device. like, the little sidekick light πopsβ the V4L2 specific flash ops. the operations, the moves, the choreography β¨sdβ the V4L2 sub-device itself. hi queen πhdlβ the flash controls handler. someone's gotta handle the controls πctrlsβ array of pointers to controls, whose values define the sub-device state. not me being an array of pointers π
π SEE ALSO π
go read these next, bestie, they're all connected iykyk:
Kernel file ./include/media/v4l2-flash-led-class.h:
struct v4l2_flash_ctrl_data(9)struct v4l2_flash_ops(9)struct v4l2_flash_config(9)v4l2_subdev_to_v4l2_flash(9)v4l2_ctrl_to_v4l2_flash(9)v4l2_flash_init(9)v4l2_flash_indicator_init(9)v4l2_flash_release(9)
fr fr that's the whole page, nothing cut, nothing added, every member accounted for π«Ά
okay that's a wrap, bestie π this lil group chat was brought to you by the file ./include/media, dated October 2026, and the page formally known as struct v4l2_flash(9). slay, go build something β¨π
π¦ 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