led_add_lookup(9)
π led_add_lookup(9) π
okay bestie, this page is from the Kernel API Manual, and itβs a tiny function with major βlet there be lightβ energy β¨ It adds a LED lookup table entry, and on systems without devicetree, that lookup table is what led_get uses to find LEDs. Slay.
β¨ NAME β¨
led_add_lookup β add a LED lookup table entry π‘
π SYNOPSIS π
void led_add_lookup (struct led_lookup_data *led_lookup );
π§ ARGUMENTS π§
led_lookupβ the lookup table entry to add. Thatβs the whole assignment, bestie π«Ά
π« DESCRIPTION π«
Add a LED lookup table entry. On systems without devicetree, the lookup table is used by led_get to find LEDs. No cap, thatβs the vibe: no devicetree? the lookup table is the main character for led_get π₯
π SEE ALSO π
Kernel file ./drivers/leds/led-class.c β plus the whole friend group:
led_classdev_suspend(9)led_classdev_resume(9)fwnode_led_get(9)led_put(9)devm_of_led_get(9)led_get(9)devm_led_get(9)led_remove_lookup(9)devm_of_led_get_optional(9)led_classdev_register_ext(9)led_classdev_unregister(9)devm_led_classdev_register_ext(9)devm_led_classdev_unregister(9)
kay bye bestie β source spot is ./drivers/leds, date is October 2026, and the page is led_add_lookup(9). periodt π
π
π¦ 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