STRUCT V4L2_FLASH_OPS(9)
πΈ struct v4l2_flash_ops(9) πΈ
okay bestie, welcome to the Kernel API Manual β¨ β this is the page for struct v4l2_flash_ops, aka the V4L2 flash operations bundle. Think of it as the little bundle of function pointers that tells the kernel "hey, here's how this flash hardware does its thing" π
π NAME π
struct v4l2_flash_ops β V4L2 flash operations, no cap
β¨ SYNOPSIS β¨
struct v4l2_flash_ops {
int (*external_strobe_set)(struct v4l2_flash *v4l2_flash, bool
enable);
enum led_brightness (*intensity_to_led_brightness) (struct
v4l2_flash *v4l2_flash, s32 intensity);
s32 (*led_brightness_to_intensity) (struct v4l2_flash *v4l2_flash,
enum led_brightness);
};
π Members π
external_strobe_setβ this is the one that sets up strobing the flash by asserting the hardware pin state π«Ά literal "flip the pin, make it strobe" energy.intensity_to_led_brightnessβ converts intensity into brightness, and it does it in a device specific manner π¦ (iykyk β every chip has opinions).led_brightness_to_intensityβ the reverse glow-up: converts brightness back to intensity, again in a device specific manner π
π SEE ALSO π
Kernel file ./include/media/v4l2-flash-led-class.h, plus the whole friend group:
struct v4l2_flash_ctrl_data(9)struct v4l2_flash_config(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)
π reminder that these callbacks are device specific by design β the struct doesn't do the math for you, it just hands you the hooks. Slay responsibly π§
and that's the whole page, bestie π brought to you by ./include/media, dated October 2026 β struct v4l2_flash_ops(9), out βοΈπβ
π¦ 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