core_param(9)
π core_param(9) π
okay so bestie, welcome to the Kernel API Manual β yes this is a real one, section 9, and it's giving "small function, big historical importance" energy. Let's get into it β¨
πΈ NAME πΈ
core_param β define a historical core kernel parameter.
(yes, historical, she's been here a minute π)
π¦ SYNOPSIS π¦
core_param (name , var , type , perm );
π ARGUMENTS π
nameβ the name of the cmdline and sysfs parameter. fun fact: it's often the exact same thing asvarπvarβ the variable itself. the actual variable. the main character πtypeβ the type of the parameter.permβ visibility in sysfs. i.e. who gets to see her in/sysπ«Ά
β DESCRIPTION β
so here's the tea β core_param is just like module_param, except for two very important things:
- it cannot be modular β nope, no module energy here, she's built in, periodt π
- it doesn't add a prefix (such as
printk.) β no little name tag, she's just out there raw π
and why? because this is for compatibility with __setup, and honestly it makes sense β truly core parameters aren't tied to the particular file they're in. they're core. they're everywhere. they're not defined by which .c file they happened to be typed into π
ngl that's kind of iconic of them.
π₯ SEE ALSO π₯
Kernel file ./include/linux/moduleparam.h β go read it, iykwinkw π β 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)fs_param_cb(9)device_param_cb(9)late_param_cb(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. that's a lot of cousins at the family reunion π§
π cute little sign-off: this page lives under./include/linux, it's dated October 2026, and you just readcore_param(9). slay, go define some core params, and remember β no prefix, no modules, no problem πβ¨
π¦ 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