led_classdev_register(9)
π NAME π
okay so this is led_classdev_register(9) from the Kernel API Manual, and the whole name-card moment is: led_classdev_register β register a new object of LED class. no cap, that's the function. β¨
π οΈ SYNOPSIS π οΈ
int led_classdev_register (struct device *parent , struct led_classdev
*led_cdev );
bestie, that's the exact signature β don't come for me about the line break. π
π ARGUMENTS π
parentβ the LED controller device this LED is driven by. like, the device that's driving this LED.led_cdevβ theled_classdevstructure for this device. that's your LED's little paperwork. ποΈ
πΈ DESCRIPTION πΈ
Register a new object of LED class, with the name derived from the name property of the passed led_cdev argument. so you pass in led_cdev, and the name comes from its name property. that's the tea. π«β¨
π₯ RETURN π₯
0 on success, or a negative error value on failure. when it's 0 we're slaying; when it's negative, it's giving error and we cry ππ.
π SEE ALSO π
the whole squad of refs, fr fr:
- Kernel file
./include/linux/leds.hstruct led_lookup_data(9) led_classdev_register_ext(9)led_blink_set(9)led_blink_set_nosleep(9)led_blink_set_oneshot(9)led_set_brightness(9)led_set_brightness_sync(9)led_mc_set_brightness(9)led_update_brightness(9)led_get_default_pattern(9)led_sysfs_disable(9)led_sysfs_enable(9)led_compose_name(9)led_get_color_name(9)led_sysfs_is_disabled(9)struct led_pattern(9)
mwah π β source/version: ./include/linux, date: October 2026, and yes it's still led_classdev_register(9). stay glowing, bestie. π«Ά
π¦ 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