to_wmi_driver(9)
β¨ NAME β¨
Okay bestie, welcome to to_wmi_driver(9) from the Kernel API Manual π β this page is all about the helper macro to cast a driver to a wmi_driver. Periodt.
π SYNOPSIS π
to_wmi_driver (drv );
π¦ ARGUMENTS π¦
drvβ driver struct. Thatβs the whole vibe: you hand over the driver struct, and thatβs it π«Ά
π DESCRIPTION π
Cast a struct device_driver to a struct wmi_driver. Literally the entire glow-up β¨ β itβs the helper macro for that cast, no extra drama, no mystery, just the type transformation. Slay.
πΈ SEE ALSO πΈ
- Kernel file
./include/linux/wmi.h struct wmi_device(9)to_wmi_device(9)struct wmi_buffer(9)struct wmi_string(9)struct wmi_driver(9)wmi_driver_register(9)module_wmi_driver(9)
Source/version cute sign-off: ./include/linux Β· October 2026 Β· page to_wmi_driver(9) ππ byeeee!
π¦ 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