STRUCT OMNIA_LED(9)
π struct omnia_led(9) β the per-LED glow-up π
okay so bestie, this is a page from the Kernel API Manual (the 9 section, for all you kernel-curious girlies) and it's all about struct omnia_led β literally the per-LED part of a driver's private data structure. it's giving "backstage pass to your LEDs" β¨
πΈ NAME πΈ
struct omnia_led β the per-LED slice of the driver's private data structure. like, every LED gets its own lil vibe folder π
β¨ SYNOPSIS β¨
here's the whole struct, exactly as it lives, no notes:
struct omnia_led {
struct led_classdev_mc mc_cdev;
struct mc_subled subled_info[OMNIA_LED_NUM_CHANNELS];
u8 cached_channels[OMNIA_LED_NUM_CHANNELS];
bool on, hwtrig;
int reg;
};
(that last brace is indented one space in the original and honestly? we respect the choices π )
π¦ Members π¦
okay so let's meet the cast, one member at a time:
mc_cdevβ the multi-color LED class device. this is the main character of the struct ngl πsubled_infoβ per-channel information. one entry for each channel, holding all its lil details πcached_channelsβ cached values of per-channel brightness that was sent to the MCU. yes bestie, we keep receipts of what we told the microcontroller πonβ whether the LED was set on. on or off, iconic either way π₯hwtrigβ whether the LED blinking was offloaded to the MCU. hardware handles it, so you don't have to, periodt β¨regβ the LED identifier to the MCU. it's literally the LED's name-tag when it talks to the MCU π
π SEE ALSO π
- Kernel file
./drivers/leds/leds-turris-omnia.c struct omnia_leds(9)
like, go read the actual driver file and then its big sibling struct β iykyk π«Ά
lowkey a reminder: these struct members are described exactly as the manual says, no extra lore added, fr fr π
π cute sign-off time! this page lives under ./drivers/leds, dated October 2026, from the Kernel API Manual β so go forth and let your LEDs slay, bestie πβπ¦
π¦ 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