lwmi_gz_profile_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lwmi_gz_profile_get β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual entry for lwmi_gz_profile_get(9) β€” yes that (9) means it's a kernel function, we're in the big leagues now πŸŽ€


🌸 NAME 🌸

lwmi_gz_profile_get β€” literally just gets you the current platform profile. that's the whole vibe. πŸ’–


✨ SYNOPSIS ✨

int lwmi_gz_profile_get (struct device *dev , enum
platform_profile_option *profile );

look at her. iconic signature. no cap. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the Gamezone interface parent device. like, the parent device of the Gamezone interface, periodt.
  • profile β€” a pointer where the current platform profile gets provided. you hand her a pointer, she fills it in. πŸ’«

πŸ’œ DESCRIPTION πŸ’œ

so what actually happens? it calls lwmi_gz_thermal_mode_get and then converts that thermal mode into a platform profile β€” and the conversion depends on the support level of the interface. yep, support level matters, iykyk. πŸ”₯

that's it. that's the function. she's lowkey doing a conversion for you and it's giving helpful. 🌈


⭐ RETURN ⭐

0 on success, or an error code. so like, if you get 0 you're slaying, and if you get anything else... 😭 it's an error code, check it.


πŸŽ€ SEE ALSO πŸŽ€

go read those too bestie, they're all in the same friend group πŸ§šπŸ’…


mwah πŸ’‹ this page lives in ./drivers/platform/x86/lenovo, dated October 2026, and it's all about lwmi_gz_profile_get(9) β€” take care of her, she's main character energy πŸ‘‘

πŸ“¦ where this page comes from