devm_led_cla...register_ext(9)
β¨ NAME β¨
okay so this is the devm_led_cla...register_ext page from the Kernel API Manual (yes the title's truncated, that's just how the kernel rolls π
) and it's literally about devm_led_classdev_register_ext β the resource managed version of led_classdev_register_ext(). devm girlies stay winning π«Ά
πΈ SYNOPSIS πΈ
int devm_led_classdev_register_ext (struct device *parent , struct
led_classdev *led_cdev , struct led_init_data *init_data );
that's the whole vibe: returns an int, takes three pointers. periodt β¨
π ARGUMENTS π
parentβ the parent of the LED device π like, whose kid is this LED, basicallyled_cdevβ theled_classdevstructure for this device π this is your actual LED's whole personalityinit_dataβ LED class device initialization data πΈ the setup info it gets born with
π¦ SEE ALSO π¦
Kernel file ./drivers/leds/led-class.c β and the whole friend group, no cap:
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_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_unregister(9)
ngl bestie, if you registered it, you gotta unregister it β that's why the devm unregister is sitting right there in SEE ALSO. iconic mutual-aid behavior πβ¨
and that's the whole page!! π sign-off time: this one lives over in ./drivers/leds and it's dated October 2026 β so yeah, future-dated manual page, main character energy fr fr ππ mwah, go register some LEDs π§ββοΈ
π¦ 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