lwmi_gz_profile_get(9)
π 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 π
- Kernel file
./drivers/platform/x86/lenovo/wmi-gamezone.c lwmi_gz_mode_call(9)lwmi_gz_event_call(9)lwmi_gz_thermal_mode_supported(9)lwmi_gz_thermal_mode_get(9)lwmi_gz_profile_set(9)lwmi_gz_extreme_supported(9)lwmi_gz_platform_profile_probe(9)
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
- 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