STRUCT MC_SUBLED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ”₯


mwah πŸ’‹ β€” source/version: ./include/linux, date: October 2026. stay glowing, bestie 🫢

πŸ“¦ where this page comes from