STRUCT MLXREG_LED_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a char array sized MLXREG_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