led_blink_set_nosleep(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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-up
  • delay_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:


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 about led_blink_set_nosleep(9). mwah, go forth and blink responsibly πŸ’œπŸ§š
πŸ“¦ where this page comes from