wilco_ec_add_sysfs(9)
hiii bestie π you're reading the wilco_ec_add_sysfs(9) page from the Kernel API Manual, and it's giving kernel-sysfs-glow-up energy. let's go π«Ά
β¨ NAME β¨
wilco_ec_add_sysfs β create sysfs entries π
π§ SYNOPSIS π§
okay so the signature is literally this, no cap:
int wilco_ec_add_sysfs (struct wilco_ec_device *ec );
πΈ ARGUMENTS πΈ
ecβ the Wilco EC device π¦. that's the one you're handing over, bestie.
π DESCRIPTION π
so real talk: wilco_ec_remove_sysfs needs to be called afterwards to do the necessary cleanup. like, you can't just create sysfs entries and ghost them π β call wilco_ec_remove_sysfs after, periodt.
π RETURN π
it returns 0 on success, or a negative error code on failure. slay when it's zero, negative error code when it's not π
π SEE ALSO π
the kernel file is ./include/linux/platform_data/wilco-ec.h, and the whole squad is:
struct wilco_ec_device(9)struct wilco_ec_request(9)struct wilco_ec_response(9)enum wilco_ec_msg_type(9)struct wilco_ec_message(9)wilco_ec_mailbox(9)wilco_keyboard_leds_init(9)wilco_ec_get_property(9)wilco_ec_set_property(9)wilco_ec_get_byte_property(9)
okay bye bestie π β this page's source/version is ./include/linux/platform_data and it's dated October 2026. 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