STRUCT OMNIA_LEDS(9)
π struct omnia_leds(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a little struct deep-dive from the kernel world, and honestly? it's giving "backstage pass to the LED driver" π
πΈ NAME πΈ
struct omnia_leds β the driver's very own private data structure. like, this is her diary, nobody else reads it π
β¨ SYNOPSIS β¨
struct omnia_leds {
struct i2c_client *client;
struct mutex lock;
bool has_gamma_correction;
struct kernfs_node *brightness_knode;
struct omnia_led leds[];
};
lowkey iconic little struct ngl π¦
π«Ά Members π«Ά
here's the cast, one by one, main character energy all around π
clientβ the I2C client device. that's her connection to the hardware, fr fr πlockβ a mutex whose whole job is protecting the cached state. do NOT skip the lock bestie, that's how you get chaos πhas_gamma_correctionβ aboolthat tells you whether the MCU firmware supports gamma correction or not. yes/no, slay or nay πbrightness_knodeβ the kernel node of the"brightness"device sysfs attribute. and listen, this is the driver specific global brightness, not the LED classdev brightness β don't mix them up, iykyk πledsβ a flexible array of per-LED data. flexible = she grows, she adapts, she's that girl πΈ
π SEE ALSO π
- Kernel file
./drivers/leds/leds-turris-omnia.c struct omnia_led(9)
go read those too, they're literally linked π
ngl this struct is short but she's doing a LOT of work behind the scenes π§
that's the whole page, bestie β you ate it up π β¨
shoutout to ./drivers/leds, stamped October 2026, living in struct omnia_leds(9) β see you in the next manpage, mwah π
π¦ 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