led_classdev...register_ext(9)
β¨ led_classdev...register_ext(9) β¨
okay so bestie, welcome to the Kernel API Manual π
we're gonna talk about led_classdev_multicolor_register_ext and honestly? it's giving "register a whole multicolor LED device" and I'm obsessed π
πΈ NAME πΈ
led_classdev_multicolor_register_ext β register a new object of led_classdev class with support for multicolor LEDs
like, that's literally the whole vibe: you're spinning up a fresh led_classdev object, but make it multicolor πβ¨
π¦ SYNOPSIS π¦
int led_classdev_multicolor_register_ext (struct device *parent , struct led_classdev_mc *mcled_cdev , struct led_init_data *init_data );
yep, she takes three arguments and hands you back an int, fr fr π«Ά
π ARGUMENTS π
parentβ the multicolor LED to register π this is the main character of the call nglmcled_cdevβ theled_classdev_mcstructure for this device π it's literally the struct that carries your deviceinit_dataβ the LED class multicolor device initialization data β¨ the setup deets, the lore, the context
β RETURN β
0 on success, or a negative error value on failure π
so like, if you get 0 you're slaying, and if you get a negative value something went sideways β that's your vibe check failing, no cap π
π§ SEE ALSO π§
- Kernel file
./include/linux/led-class-multicolor.hβ the header, the source of truth π struct mc_subled(9)β the sub-LED struct, iconicled_classdev_multicolor_unregister(9)β the "undo" bestie, always good to know her π«Άled_mc_calc_color_components(9)β the color math girlie π
and that's the page, bestie π
brought to you by the Kernel API Manual, straight outta ./include/linux, dated October 2026 β go forth and register those multicolor LEDs, you've got this ππ
π¦ 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