STRUCT V4L2_FLASH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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