STRUCT MC_SUBLED(9)
π struct mc_subled(9) π
okay so bestie, welcome to the Kernel API Manual entry for struct mc_subled β itβs giving βtiny but mighty color-component glow-upβ β¨ and weβre gonna read it together, no cap.
β¨ NAME β¨
struct mc_subled β Color component description. π
π¦ SYNOPSIS π¦
struct mc_subled {
unsigned int color_index;
unsigned int brightness;
unsigned int intensity;
unsigned int max_intensity;
unsigned int channel;
};
π Members π
color_indexβ Color ID. π¨brightnessβ Scaled intensity. βοΈintensityβ Current intensity. β‘max_intensityβ Maximum supported intensity value. π¦channelβ Channel index. π’
πΈ Description πΈ
okay so this struct literally describes a color component of a multicolor LED. π Many multicolor LEDs do not support global brightness control in hardware, so they use the brightness field together with led_mc_calc_color_components to perform the intensity scaling in software. Such drivers should set max_intensity to 0 to signal the multicolor LED core that the maximum global brightness of the LED class device should be used for limiting incoming intensity values. π
Multicolor LEDs that do support global brightness control in hardware should instead set max_intensity to the maximum intensity value supported by the hardware for a given color component. No cap. π
π₯ SEE ALSO π₯
- Kernel file
./include/linux/led-class-multicolor.h led_classdev_multicolor_register_ext(9)led_classdev_multicolor_unregister(9)led_mc_calc_color_components(9)
mwah π β source/version: ./include/linux, date: October 2026. 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