subsys_param_cb(9)
π subsys_param_cb β the Kernel API Manual, bestie edition π
okay so picture this: it's a manpage from the Kernel API Manual and it's about one (1) very specific little function. let's get into it π
β¨ NAME β¨
subsys_param_cb β the general callback for a module/cmdline parameter, and she gets evaluated before the subsys initcall level π (yes, before. she's early. she's punctual. we stan.)
πΈ SYNOPSIS πΈ
subsys_param_cb (name , ops , arg , perm );
that's it. that's the whole vibe check. four things, in that order, no cap π«Ά
π ARGUMENTS π
nameβ a valid C identifier that is the parameter name. literally just has to be a valid C identifier, that's the whole assignment bestie β¨opsβ the set & get operations for this parameter. this is where the actual doing happens π₯argβ args forops. they get passed along, she's just the messenger πpermβ visibility in sysfs. it's giving "who's allowed to see me" energy π
π¦ DESCRIPTION π¦
so the important tea β: the ops can have NULL set or get functions. like, genuinely, that's allowed. NULL set? fine. NULL get? fine. it's not a bug, it's a feature, periodt π
ngl this is the entire description and honestly? iconic of her. short, sweet, zero filler. she said "the ops can have NULL set or get functions" and then dipped π
π§ SEE ALSO π§
she has a LOT of friends, and you're gonna meet all of them, okay? every single one:
- 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)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)module_param_hw_array(9)
like I said. a whole friend group. a whole squad. iykyk ππ
and that's the page, bestie!! shoutout to ./include/linux for housing all this and to October 2026 for being the date on the tin β mwah, love u, go read your kernel headers ππ
β¨
π¦ 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