led_mc_set_brightness(9)
β¨ led_mc_set_brightness β the Kernel API Manual glow-up β¨
Okay bestie, welcome to the Kernel API Manual page for led_mc_set_brightness(9) β yes, the multicolor LED function, and yes, she ate π
πΈ NAME πΈ
led_mc_set_brightness β set mc LED color intensity values and brightness π
π¦ SYNOPSIS π¦
void led_mc_set_brightness (struct led_classdev *led_cdev , unsigned int
*intensity_value , unsigned int num_colors , unsigned int brightness );
π ARGUMENTS π
led_cdevβ the LED to set, like literally the main character here πintensity_valueβ array of per color intensity values to set, one lil entry per color πnum_colorsβ amount of entries inintensity_valuearray, so she knows how many vibes she's working with β¨brightnessβ the brightness to set the LED to, glow level unlocked π₯
π DESCRIPTION π
Set a multi-color LED's per color intensity values and brightness. If necessary, this cancels the software blink timer. This function is guaranteed not to sleep π΄π« β no nap time, periodt.
Calling this function on a non multi-color led_classdev or with the wrong num_colors value is an error. In this case an error will be logged once and the call will do nothing. Not me warning you β okay yes, me warning you: vibe check your args first, bestie π«Ά
π SEE ALSO π
- Kernel file
./include/linux/leds.hstruct led_lookup_data(9) led_classdev_register_ext(9)led_classdev_register(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_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)
And that's the whole page, bestie β iconic, no cap. π
Sign-off time: this cutie lives in ./include/linux, dated October 2026, and she's officially led_mc_set_brightness(9). Go forth and glow responsibly π§β¨π
π¦ 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