led_blink_set_nosleep(9)
π led_blink_set_nosleep(9) π
okay so bestie, welcome to the Kernel API Manual β this one's about led_blink_set_nosleep, and yes the name is a whole mouthful but it's literally just "make the LED blink, but do NOT go to sleep on me." π«Ά
β¨ NAME β¨
led_blink_set_nosleep β set blinking, guaranteed to not sleep πΈ
β‘ SYNOPSIS β‘
void led_blink_set_nosleep (struct led_classdev *led_cdev , unsigned
long delay_on , unsigned long delay_off );
π ARGUMENTS π
led_cdevβ the LED you're about to start blinking π this is the diva that gets the glow-updelay_onβ how long it stays on, in ms β±οΈdelay_offβ how long it stays off, in ms π΄ (the manpage literally says "ble off" and honestly? iconic typo, we're keeping the energy π )
π¦ DESCRIPTION π¦
This function makes the LED blink and it is guaranteed to not sleep β¨ like, no napping, no "brb in a sec", it just does the thing. πββοΈπ¨
Otherwise it's the exact same as led_blink_set β so if you want the details, go read led_blink_set, it's giving the same vibe, just with the no-sleep promise attached π
lowkey the whole point: you're probably in a context where sleeping is a no-no, and this function respects that. periodt. π₯
π SEE ALSO π
Kernel file ./include/linux/leds.h and honestly the whole LED friend group showed up:
struct led_lookup_data(9)led_classdev_register_ext(9)led_classdev_register(9)led_blink_set(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)
okay that's the whole thing bestie, go make something blink π‘π«
sign-off moment π: this lil page lives in./include/linux, dated October 2026, and it's all aboutled_blink_set_nosleep(9). mwah, go forth and blink responsibly ππ§
π¦ 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