STRUCT MLXREG_LED_DATA(9)
π NAME π
okay so bestie, this is struct mlxreg_led_data β literally the led control data struct, and yes it's from the Kernel API Manual, section 9. she's a little struct with big main character energy β¨
πΈ SYNOPSIS πΈ
struct mlxreg_led_data {
struct mlxreg_core_data *data;
struct led_classdev led_cdev;
u8 base_color;
void *data_parent;
char led_cdev_name[MLXREG_CORE_LABEL_MAX_SIZE];
};
like, that's the whole shape of her. five members, no cap π«Ά
π Members π
dataβ the led configuration data π like, this is where the config lives, periodt.led_cdevβ the led class data β¨ the actual classdev situation.base_colorβ the base led color, and ngl this is the moment: every other color has a constant offset from this base π so she's the reference point, the blueprint, the icon.data_parentβ a pointer to the private device control data of the parent π like, your parent's data, but make it a pointer.led_cdev_nameβ the class device name π·οΈ it's achararray sizedMLXREG_CORE_LABEL_MAX_SIZE, so the label has a max size and we respect it fr fr.
π¦ SEE ALSO π¦
- Kernel file
./drivers/leds/leds-mlxreg.cπ struct mlxreg_led_priv_data(9)πΈ
okay that's the whole page, you ate that π this gem lives in ./drivers/leds, dated October 2026, and it's the struct mlxreg_led_data(9) moment β go be iconic with it π
β¨
π¦ 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