STRUCT OMNIA_LED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 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