wilco_keyboard_leds_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ wilco_keyboard_leds_init ✨

okay bestie, welcome to the wilco_keyboard_leds_init(9) page πŸ’… this is a kernel API manual situation, section 9, and it's literally all about making your keyboard glow. yes. the backlight. we're doing this. πŸŽ€


🌸 NAME 🌸

wilco_keyboard_leds_init β€” it sets up the keyboard backlight LEDs. that's the whole job, and honestly? iconic. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int wilco_keyboard_leds_init (struct wilco_ec_device *ec );

πŸ’œ ARGUMENTS πŸ’œ

  • ec β€” the EC device you're querying. like, that's the one you're asking. hand it over. 🫢

🌈 DESCRIPTION 🌈

so after you call this, the keyboard backlight gets exposed through an LED device at /sys/class/leds. and now it's a whole sysfs thing. main character energy for real. 🌟

⚠️ heads up bestie: this one may sleep, because it goes through wilco_ec_mailbox. so don't be calling it from somewhere that can't nap, okay? 😴

⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • a negative error code on failure 😭

like, no in-between. it worked or it didn't.


πŸ“ SEE ALSO πŸ“

the whole squad, fr fr β€” kernel file ./include/linux/platform_data/wilco-ec.h, plus:

go read them, iykyk πŸ’–


alright that's the page! it lives in ./include/linux/platform_data, dated October 2026, and it's filed under wilco_keyboard_leds_init(9). slay, go make that keyboard shine βœ¨πŸ§šβ€β™€οΈπŸ’…

πŸ“¦ where this page comes from