STRUCT SYSCON_LED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, meet struct syscon_led from the Kernel API Manual β€” it's literally the state container for syscon based LEDs ✨ no cap, that's the whole vibe.


✨ SYNOPSIS ✨

struct syscon_led {
    struct led_classdev cdev;
    struct regmap *map;
    u32 offset;
    u32 mask;
    bool state;
 };

πŸŽ€ Members πŸŽ€

  • cdev β€” the LED class device for this LED πŸ’– like, its whole main-character LED identity.
  • map β€” the regmap used to access the syscon device backing this LED πŸ¦‹ the map to the whole situation.
  • offset β€” the offset into the syscon regmap for the LED register πŸ“ bestie, this is where the LED register lives.
  • mask β€” the bit in the register corresponding to the LED 🎯 the exact little bit that's all about this LED.
  • state β€” the current state of the LED πŸ’‘ lowkey just telling you if it's on or off energy.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/leds/leds-syscon.c β€” go read it, iykyk πŸ‘‘


sign-off time, bestie: this lil page comes from ./drivers/leds, dated October 2026 β€” periodt, that's the source/version and date, fr fr πŸ«ΆπŸ’…πŸŽ€

πŸ“¦ where this page comes from