led_blink_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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