fs_param_cb(9)
β¨ fs_param_cb(9) β¨
okay so welcome to the Kernel API Manual bestie, today we're doing fs_param_cb β the general callback for a module/cmdline parameter that gets evaluated before the fs initcall level π like it's literally the early-bird special of kernel params, and honestly? iconic.
πΈ NAME πΈ
fs_param_cb β general callback for a module/cmdline parameter to be evaluated before fs initcall level π
π¦ SYNOPSIS π¦
fs_param_cb (name , ops , arg , perm );
no cap, that's the whole vibe β¨
π ARGUMENTS π
nameβ a valid C identifier which is the parameter name. yes bestie it literally has to be a valid C identifier, don't come at me with spaces πopsβ the set & get operations for this parameter. this is where the actual doing stuff lives πargβ args for ops. it's giving "pass it along" energy π«Άpermβ visibility in sysfs. who gets to peek π
π₯ DESCRIPTION π₯
The ops can have NULL set or get functions. fr fr, that's allowed β you don't have to fill in both, it's not a group project where everyone has to participate π
lowkey important: NULL here is fine and expected, not a bug. don't @ me.
π SEE ALSO π
Kernel file ./include/linux/moduleparam.h, plus the whole friend group:
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)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)
and that's the whole page, bestie π this lil masterpiece lives in ./include/linux, dropped October 2026, brought to you by the Kernel API Manual β go forth and parameterize responsibly, ily, 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