lwmi_attr_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ lwmi_attr_id(9) ✨

okay bestie, welcome to the kernel API manual for lwmi_attr_id β€” this is from the Kernel API Manual, section 9, and it's literally the little function that Formats a capability data attribute ID πŸ’… no cap, that's the whole job and it ate.


🌸 NAME 🌸

lwmi_attr_id β€” formats a capability data attribute ID ✨ it takes all your little IDs and squishes them into one encoded attribute ID, iconic behavior honestly πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 lwmi_attr_id (u8 dev_id , u8 feat_id , u8 mode_id , u8 type_id );

it hands you back a u32, and it wants four u8s in exchange. the way that's such a fair trade 🫢


πŸ’– ARGUMENTS πŸ’–

  • dev_id β€” the u8 corresponding to the device ID. which device are we talking about, bestie? this one 🫡
  • feat_id β€” the u8 corresponding to the feature ID on the device. the specific little feature living on that device ✨
  • mode_id β€” the u8 corresponding to the wmi-gamezone mode for set/get. so like… are we setting or getting? that's the vibe this one encodes 🌈
  • type_id β€” the u8 corresponding to the sub-device. the sub-device!! the underling!! the main character's supporting cast πŸŽ€
ngl all four are u8 and all four are required β€” don't skip any, don't get cute with it πŸ’€

⭐ RETURN ⭐

it returns the encoded capability data attribute ID πŸ”₯ that's it, that's the whole return value β€” one gloriously encoded ID, handed straight to you πŸ‘‘


🧚 SEE ALSO 🧚

  • Kernel file ./drivers/platform/x86/lenovo/wmi-capdata.h β€” go read it, iykyk πŸ“–πŸ’œ

and that's the whole page bestie!! πŸ“ the source is from ./drivers/platform/x86/lenovo, dated October 2026, and honestly? a slay. mwah πŸ’‹πŸŽ€πŸ’…

πŸ“¦ where this page comes from