STRUCT SYSCON_LED(9)
πΈ 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β theregmapused to access the syscon device backing this LED π¦ the map to the whole situation.offsetβ the offset into the sysconregmapfor 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
- 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