devm_led_get(9)
π NAME π
okay so bestie, this is devm_led_get(9) from the Kernel API Manual β and its whole vibe is: request a LED device via the LED framework. iconic devm behavior, fr fr. β¨
πΈ SYNOPSIS πΈ
struct led_classdev * devm_led_get (struct device *dev , char *con_id );
π«Ά ARGUMENTS π«Ά
devβ the device for which you're getting the LED device. literally the βwho is askingβ energy. πcon_idβ the name of the LED from the device's point of view. iykyk, it's the connection-ID situation. π¦
β¨ DESCRIPTION β¨
The LED device returned from this function is automatically released on driver detach β no cap, that's the devm main character move doing its thing. π
And the return? It returns a pointer to a LED device or ERR_PTR(errno) on failure. periodt. π
π SEE ALSO π
- Kernel file:
./drivers/leds/led-class.c led_classdev_suspend(9)led_classdev_resume(9)fwnode_led_get(9)led_put(9)devm_of_led_get(9)led_get(9)led_add_lookup(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)
mwah π β signed off from the ./drivers/leds source, October 2026 edition, with devm_led_get(9) living its best life. π
π¦ 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