module_param_array_named(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ module_param_array_named ✨

okay so bestie, welcome to a page from the Kernel API Manual β€” yes, that kernel, the Linux one, we're literally in the big leagues now πŸ’…

This one's about module_param_array_named β€” a renamed parameter that's an array of some type. Iconic behavior, honestly.


🌸 SYNOPSIS 🌸

module_param_array_named (name , array , type , nump , perm );

That's the whole vibe check right there. Let's break down what each lil piece is doing 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” a valid C identifier that serves as the parameter name. Like, it has to actually be valid C, bestie, no funny business 😭
  • array β€” the name of the array variable. yeah. the actual array. that one.
  • type β€” the type, as per module_param. go check that one if you need the deets, I'm not making stuff up here ✨
  • nump β€” an optional pointer that gets filled in with the number written. optional!! so you can pass it or not, your call πŸ’…
  • perm β€” visibility in sysfs. that's it, that's the whole thing.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: this bad boy exposes a different name than the actual variable name. Yep. The name you show the world is not the name the variable has internally β€” main character energy, honestly πŸ‘‘

And if you're sitting there like "wait, why would anyone even need that??" β€” same, but the answer is right there in module_param_named. Go read that one, it explains why this might be necessary. iykyk 🧚


πŸ’– SEE ALSO πŸ’–

Kernel file ./include/linux/moduleparam.h β€” and the whole friend group:

like, an entire ensemble cast. love that for them 🌈


lowkey a reminder: nump is optional, but if you're passing it, know what you're doing β€” it gets filled in with the number written. no cap, that's literally in the arguments section πŸ’€

okay that's the whole page, bestie!! πŸ“ this little gem lives in ./include/linux and it's dated October 2026 β€” so like, future energy, but make it kernel. go forth and name your params differently from your variables, you absolute icon πŸ’œπŸŽ€

πŸ“¦ where this page comes from