STRUCT LPG_LED(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct lpg_led(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ and literally the first thing you need to know: this is struct lpg_led β€” the logical LED object πŸŽ€ like, the whole vibe of an LED, in struct form. iykyk πŸ’…


✨ NAME ✨

struct lpg_led β€” the logical LED object πŸ‘‘ no cap, that's the whole name, she's iconic and she knows it.


🌸 SYNOPSIS 🌸

ok so here's the shape of her, and you gotta keep it exactly like this, character for character, because we do not mess with struct definitions πŸ™ˆ:

struct lpg_led {
    struct lpg *lpg;
    struct led_classdev cdev;
    struct led_classdev_mc mcdev;
    unsigned int num_channels;
    struct lpg_channel *channels[];
 };

look at her go πŸ¦‹ five members, all vibing in one struct. slay.


πŸ’œ Members πŸ’œ

okay now let's meet the cast, one by one, main character energy all around:

  • lpg β€” the lpg context reference ✨ like her little backstage pass to the whole show.
  • cdev β€” the LED class device 🫢 yes bestie, the actual LED class device.
  • mcdev β€” the Multicolor LED class device 🌈 because sometimes one colour just isn't the moment.
  • num_channels β€” the number of channels πŸ”’ literally just counting how many channels we're working with.
  • channels β€” the list of channels associated with the LED πŸ’… the whole friend group, honestly.

πŸ¦‹ SEE ALSO πŸ¦‹

if you wanna keep reading (and you should, bestie, it's giving lore ✨), go check out the Kernel file ./drivers/leds/rgb/leds-qcom-lpg.c along with these icons:

  • struct lpg_channel(9)
  • struct lpg(9)
  • struct lpg_channel_data(9)
  • struct lpg_data(9)

no skips, read them all, they're literally the whole extended universe πŸ”₯


okay that's the whole page πŸ’– courtesy of ./drivers/leds/rgb, dated October 2026, and yeah β€” she's still struct lpg_led(9) in the footer, periodt πŸ’€πŸ«Ά go forth and slay your LEDs βœ¨πŸ’…

πŸ“¦ where this page comes from