devl_param_...it_value_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devl_param_...it_value_get(9) β€” from the Kernel API Manual ✨

Okay bestie, buckle up, because this one is a little niche but honestly kind of iconic once you get it. It's giving "kernel internals but make it readable." πŸ¦‹


🌸 NAME 🌸

devl_param_driverinit_value_get β€” literally just: get the configuration parameter value for driver initializing. That's it. That's the whole vibe. πŸ’–


⭐ SYNOPSIS ⭐

int devl_param_driverinit_value_get (struct devlink *devlink , u32
param_id , union devlink_param_value *val );

No cap, there it is. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • devlink β€” the devlink. Yeah. It's the devlink. Immaculate, no notes. πŸ’€
  • param_id β€” the parameter ID, i.e. which parameter we're talking about. 🏷️
  • val β€” a pointer where the value of the parameter gets stored, specifically in driverinit configuration mode. So this is where the tea (the value) lands. πŸ“

✨ DESCRIPTION ✨

So here's the sitch: your driver should use this function to grab the driverinit configuration for initialization after a reload command. Like, reload happens, and then you come back and ask "hey what was my config again?" and this function answers. 🫢

⚠️ Okay now the important part, don't scroll past this β€” the lockless call of this function relies on the driver to maintain the following basic sane behavior. This is a trust fall, bestie. 😭
  1. The driver ensures a call to this function cannot race with registering/unregistering the parameter with the same parameter ID. No racing. We don't do that here. 🚫🏁
  2. The driver ensures a call to this function cannot race with a devl_param_driverinit_value_set call with the same parameter ID. Same energy. Keep it clean. πŸ’…
  3. The driver ensures a call to this function cannot race with a reload operation. And listen β€” if the driver is not able to comply, it has to take the devlink->lock while calling this. That's not optional, that's the rule. πŸ”’

πŸ”₯ SEE ALSO πŸ”₯

Go read those too, iykyk. πŸ“šπŸ’œ


🌈 And that's the whole page, bestie! This little gem lives in ./net/devlink, dated October 2026, and it's page devl_param_...it_value_get(9) of the Kernel API Manual β€” go forth and get those parameter values responsibly. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from