STRUCT V4L2_FLASH_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct v4l2_flash_config(9) πŸ¦‹

okay so bestie, welcome to the Kernel API Manual ✨ β€” this page is literally all about struct v4l2_flash_config, which is the V4L2 Flash sub-device initialization data. it's giving "before you can slay with a flash sub-device, you gotta hand over the setup deets" πŸ’…


✨ NAME ✨

struct v4l2_flash_config β€” V4L2 Flash sub-device initialization data πŸŽ€


🌸 SYNOPSIS 🌸

struct v4l2_flash_config {
    char dev_name[32];
    struct led_flash_setting intensity;
    u32 flash_faults;
    unsigned int has_external_strobe:1;
 };

no cap, that's the whole shape of it 🫢


πŸ’– Members πŸ’–

  • dev_name β€” the name of the media entity. it has to be unique in the system, so like… don't go naming two of your entities the same thing, bestie, that's not the vibe 😭
  • intensity β€” the non-flash strobe constraints for the LED. iykyk, this is where the torch-mode boundaries live ⭐
  • flash_faults β€” a bitmask of the flash faults that the LED flash class device can report. the corresponding LED_FAULT* bit definitions are chilling in the header file <linux/led-class-flash.h> β€” go look, they're right there πŸ¦‹
  • has_external_strobe β€” external strobe capability. yes it's a 1-bit field, yes it's iconic πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/media/v4l2-flash-led-class.h β€” and honestly the whole friend group is here:


and that's the whole page, bestie πŸ’œ this lil' gem lives in ./include/media, dropped October 2026, straight from the Kernel API Manual β€” mwah, go forth and initialize your flash sub-devices with main character energy πŸŒˆπŸ‘‘πŸ’–

πŸ“¦ where this page comes from