devl_param_...it_value_set(9)
π 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β thedevlinkinstance. 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β aunion 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:
devl_params_register(9)devl_params_unregister(9)devl_param_driverinit_value_get(9)devl_param_value_changed(9)
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
- 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