wilco_ec_get_byte_property(9)
β¨ wilco_ec_get_byte_property β¨
okay bestie, welcome to the wilco_ec_get_byte_property page π
this lives in the Kernel API Manual, and it's lowkey one of the cutest little getters in the whole EC situation. it does exactly what it says on the tin: it goes and gets you a byte-size property from the EC. no cap. π
πΈ SYNOPSIS πΈ
int wilco_ec_get_byte_property (struct wilco_ec_device *ec , u32
property_id , u8 *val );
that's the whole vibe right there β one function, three args, returns an int. iconic. β¨
π¦ ARGUMENTS π¦
ecβ the Embedded Controller device. like, the actual EC we're talking to. your main character. πproperty_idβ which property to retrieve. basically the address of the tea you're asking for, iykyk. πvalβ the result value, will be filled by this function. so heads up, this one's an out-param β it gets written into by the call, fr fr. π
β RETURN β
0 on success, negative error code on failure. that's it, that's the whole return contract β zero means slay, negative means something went sideways. π
π SEE ALSO π
- Kernel file
./include/linux/platform_data/wilco-ec.h 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_add_sysfs(9)
go read those too bestie, they're all part of the same little ecosystem and honestly the way they all reference each other is giving family reunion π«Ά
π‘ friendly reminder:valis a pointer to au8, so make sure you're passing something valid to be filled β this function writes through it, and we don't do undefined behaviour in this house. π
kisses, this page came to you from ./include/linux/platform_data, dated October 2026, and it's filed under the one and only wilco_ec_get_byte_property(9) π mwah, go get those bytes π§ββοΈ
π¦ 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