fs_param_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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