led_blink_set(9)
π led_blink_set(9) β the led_blink_set kernel API page, but make it make sense π
okay so bestie, welcome to led_blink_set(9) from the Kernel API Manual. it's the glow-up era of filesystem docs β¨
πΈ NAME πΈ
led_blink_set β set blinking with software fallback. yes queen, blink first, ask questions later π
β¨ SYNOPSIS β¨
void led_blink_set (struct led_classdev *led_cdev , unsigned long
*delay_on , unsigned long *delay_off );
π¦ ARGUMENTS π¦
led_cdevβ the LED you're about to start blinking. it's the main character of this whole situation πdelay_onβ the time it should be on, in ms β±οΈdelay_offβ the time it should ble off, in ms π (yes, "ble" β that's literally what the page says, the typo is canon, iykyk π)
π₯ DESCRIPTION π₯
this function makes the LED blink, and it's lowkey trying its best: it attempts to use the hardware acceleration if possible, but falls back to software blinking if there is no hardware blinking, or if the LED refuses the passed values. like, it asked nicely, but no cap, sometimes the hardware just says no π
β οΈ this function may sleep! so do not come for it in a context where sleeping is forbidden, fr fr π«Ά
also heads up, and this one's important: note that if software blinking is active, simply calling led_cdev->brightness_set will not stop the blinking. use led_set_brightness instead. yeah, different function, different vibe β that's the whole plot twist π
π SEE ALSO π
kernel file ./include/linux/leds.h, plus the whole friend group:
struct led_lookup_data(9)led_classdev_register_ext(9)led_classdev_register(9)led_blink_set_nosleep(9)led_blink_set_oneshot(9)led_set_brightness(9)led_set_brightness_sync(9)led_mc_set_brightness(9)led_update_brightness(9)led_get_default_pattern(9)led_sysfs_disable(9)led_sysfs_enable(9)led_compose_name(9)led_get_color_name(9)led_sysfs_is_disabled(9)struct led_pattern(9)
and that's the page, bestie π«Ά it lives in ./include/linux, all dated October 2026 β so mark your calendar, screenshot it, whatever you gotta do πβ¨
π¦ 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