module_param_hw_array(9)
πΈ module_param_hw_array(9) πΈ
okay so bestie, this one lives in the Kernel API Manual β welcome to the kernel-param corner of the group chat, it's giving very niche but very iconic π
β¨ NAME β¨
module_param_hw_array β it's literally a parameter that represents an array of hw parameters. no cap, that's the whole vibe π
π¦ SYNOPSIS π¦
module_param_hw_array (name , type , hwtype , nump , perm );
that's the shape of it, periodt β¨
π ARGUMENTS π
nameβ the name of the array variable, bestie. it's name. iconic behavior, honestly π«Άtypeβ the type, as permodule_paramβ so whatever rules apply over there apply here too, iykykhwtypeβ what the value actually represents (enum hwparam_type) πnumpβ an optional pointer that gets filled in with the number written. optional!! so don't stress if you don't need it πΈpermβ visibility insysfsβ this is the little window where everyone can peek at your param π
β DESCRIPTION β
so the tea is: input and output are as comma-separated values π
but β and listen, this is the important part β commas inside values don't work properly π like, for real. eg. an array of charp. so keep your commas strictly business, no commas inside the commas, fr fr.
also! ARRAY_SIZE(name) is used to determine the number of elements in the array β which means the definition must be visible. no hiding it, bestie, she needs to see it to count it π
π₯ SEE ALSO π₯
the whole friend group, gathered for you, in a single 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_named(9)
ok that's the entire list, nobody gets left out in this household π
and that's the page!! mwah π this one ships with the kernel docs out of ./include/linux, from the October 2026 edition of the Kernel API Manual β go off and register your hw param arrays, bestie, you're gonna slay πβ¨π¦
π¦ 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