devl_param_...it_value_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devl_param_...it_value_set(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ this one is short and sweet and honestly kind of a vibe β€” it's the little helper that lets a driver set the default value for a configuration parameter when it's in driverinit configuration mode. let's get into it 🫢


🌸 SYNOPSIS 🌸

void devl_param_driverinit_value_set (struct devlink *devlink , u32
param_id , union devlink_param_value *init_val );

like, that's the whole thing. void return, no cap β€” it's not gonna hand you back an error code or anything, it just does the thing πŸ’…


✨ ARGUMENTS ✨

  • devlink β€” the devlink instance. yeah, that's it, that's the description. it's giving "the devlink, obviously" πŸŽ€
  • param_id β€” literally just the parameter ID (u32). the number that says which param we're talking about πŸ”₯
  • init_val β€” a union devlink_param_value * pointing at the value you wanna set for driverinit configuration mode. this is the actual payload, the main character of this whole operation πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way that this works is: your driver calls this function when it needs to set the driverinit configuration mode default value. that's the whole assignment, bestie. it's specifically the function drivers should use for exactly that purpose β€” not me making that up, it's literally what the page says πŸ’–

no cap, that's the entire description. short queen. sometimes a function knows exactly what it is and doesn't need to overexplain itself ✨


πŸŽ€ SEE ALSO πŸŽ€

the kernel file for all this lives in ./net/devlink/param.c β€” go look at it if you're curious, iykyk πŸ‘€ and while you're in the neighborhood, these are the siblings:

like a little devlink param friend group, honestly 🫢


ngl there's no warnings, no errors, no exit statuses on this one β€” it's just a clean lil setter. but pls remember the whole point is driverinit mode defaults, so don't go using it for something it's not for πŸ™ˆ

and that's the page!! πŸ§šπŸ’œ this gorgeousness lives under ./net/devlink and it's dated October 2026 β€” slay, see you in the future bestie πŸ’…πŸŒΈπŸ’–

πŸ“¦ where this page comes from