asus_wmi_get_devstate_dsts(9)
π asus_wmi_get_devstate_dsts(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function from the ASUS WMI squad and honestly? she's a whole vibe. her name is asus_wmi_get_devstate_dsts and she's here to get the WMI function state for you. lowkey iconic of her.
β¨ NAME β¨
asus_wmi_get_devstate_dsts β get the WMI function state. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
int asus_wmi_get_devstate_dsts (u32 dev_id , u32 *retval );
like look at her, only two arguments, she's not asking for much π«Ά
π¦ ARGUMENTS π¦
dev_idβ the WMI method ID to call. this is the "which thing do you want" number, so pick it carefully bestie πretvalβ a pointer to where to store the value returned from WMI. it's the lil bucket you're handing her so she can drop the answer in it π
β RETURN β
she gives you back an int, and here's how to read it, no cap:
-ENODEVβ the method ID is unsupported. basically she looked at yourdev_idand was like "girl. no." π0β successful, andretvalis filled. slay, the bucket has data now π- other β an error from the WMI call itself. not her fault, the WMI call fumbled π
π SEE ALSO π
- Kernel file
./drivers/platform/x86/asus-wmi.c asus_wmi_set_devstate(9)β the setter sister, go check her out too π
so yeah, that's the whole page. no cap, she's a simple queen: you give her an ID and a pointer, she gives you a state and maybe an error. vibe check passed β¨
this little drop came to you from ./drivers/platform/x86, dated October 2026 β mwah, kisses from the kernel, bye bestie π§π
π¦ 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