module_param_hw_named(9)
β¨ module_param_hw_named β¨
okay bestie, so this one is a Kernel API Manual page and it's literally all about module_param_hw_named β a parameter that represents a hw parameter π
no cap, that's the whole vibe. let's get into it π«Ά
πΈ SYNOPSIS πΈ
module_param_hw_named (name , value , type , hwtype , perm );
that's the whole call, bestie β five args, in that exact order, periodt β¨
π ARGUMENTS π
nameβ a valid C identifier which is the parameter name. like, it has to actually be a legal C identifier, okay? no funny business πvalueβ the actual lvalue to alter. yes, the actual thing that gets changed π₯typeβ the type of the parameter.hwtypeβ what the value represents (enumhwparam_type). that's the whole point of thehwin the name, iykyk πpermβ visibility in sysfs. that's yoursysfsvisibility setting, no more no less π
π¦ DESCRIPTION π¦
okay so normally it's a good idea to have your variable names and your user-exposed names be the same β like, matching, cute, clean, very cohesive β¨. but that gets harder if the variable must be non-static, or if it lives inside a structure π. and this is the icon that fixes that: it allows exposure under a different name π
π SEE ALSO π
- Kernel file
./include/linux/moduleparam.h module_param(9)module_param_unsafe(9)module_param_named(9)module_param_named_unsafe(9)module_param_cb(9)core_param_cb(9)postcore_param_cb(9)arch_param_cb(9)subsys_param_cb(9)fs_param_cb(9)device_param_cb(9)late_param_cb(9)core_param(9)core_param_unsafe(9)__core_param_cb(9)module_param_string(9)parameq(9)parameqn(9)module_param_array(9)module_param_array_named(9)module_param_hw_array(9)
like, that's the whole friend group right there β go read them too, they're all slaying in their own way π§π
bestie note: the source path is./include/linuxand this page is datedOctober 2026β that's the version/date sign-off, so now you know where it came from and when, mwah ππ
π¦ 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