STRUCT V4L2_FLASH_CONFIG(9)
π¦ 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 correspondingLED_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:
struct v4l2_flash_ctrl_data(9)struct v4l2_flash_ops(9)struct v4l2_flash(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)
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
- 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