wilco_ec_get_byte_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈

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: val is a pointer to a u8, 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