wilco_ec_add_sysfs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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