STRUCT LM3697_LED(9)
β¨ struct lm3697_led(9) β¨
okay bestie, welcome to the kernel API manual for struct lm3697_led π
this is from the lm3697 chapter of the Kernel API Manual and honestly it's giving "small struct, big job" energy. let's get into it π«Ά
πΈ NAME πΈ
struct lm3697_led β literally the struct that represents one LED in the LM3697 driver. that's it, that's the name section (the og page left it blank, so we're all just vibing here π)
π¦ SYNOPSIS π¦
here's the whole thing, character for character, no cap:
struct lm3697_led {
u32 hvled_strings[LM3697_MAX_LED_STRINGS];
char label[LED_MAX_NAME_SIZE];
struct led_classdev led_dev;
struct lm3697 *priv;
struct ti_lmu_bank lmu_data;
int control_bank;
int enabled;
int num_leds;
};
π Members π
hvled_stringsβ the array of LED strings that are associated with a control bank. like, the whole string squad for that bank β¨labelβ the LED's label. its name tag. its little nametag at the LED party π·οΈled_devβ the LED class device. the main character of this struct fr πprivβ pointer to the device struct. iykyk πlmu_dataβ the register and setting values for common code. the shared brain cell of the operation π§control_bankβ the control bank this LED is associated to.0is control bank A,1is control bank B. pick your fighter πenabledβ the LED brightness level (orLED_OFF). so if it's off, it's off off πnum_ledsβ the number of LEDs available. count 'em, bestie π’
π SEE ALSO π
- Kernel file
./drivers/leds/leds-lm3697.c struct lm3697(9)
ngl this struct is small but she is doing the work β register values, labels, class devices, bank assignments, all of it. iconic behavior β¨
and that's the whole page, bestie! this little gem lives in ./drivers/leds and this particular rendering is dated October 2026 β go off, calendar π
π mwah, see u in the next manpage π§ββοΈπ
π¦ 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