STRUCT NFP_DEVLINK_PARAM_U8_ARG(9)
β¨ NAME β¨
okay so bestie, welcome to the Kernel API Manual (section 9, the fun one π
) β this page is all about struct nfp_devlink_param_u8_arg, aka the Devlink u8 parameter get/set arguments. it's giving "little struct, big job" and honestly? we're obsessed π«Ά
πΈ SYNOPSIS πΈ
here's the whole vibe, laid out exactly:
struct nfp_devlink_param_u8_arg {
const char *hwinfo_name;
const char *default_hi_val;
int invalid_dl_val;
u8 hi_to_dl[4];
u8 dl_to_hi[4];
u8 max_dl_val;
u8 max_hi_val;
};
no cap, that's the entire struct. six little members and a whole lotta mapping energy π
π Members π
hwinfo_nameβ the HWinfo key name. literally just the name of the key, that's her whole personality β¨default_hi_valβ the default HWinfo value you fall back on if the HWinfo doesn't exist. backup plan energy π¦invalid_dl_valβ the devlink value to use when the HWinfo is unknown/invalid. and heads up: it's-errnoif there's no unknown/invalid value available, so don't be surprised πhi_to_dlβ the HWinfo β devlink value mapping. translating one direction, iconically π₯dl_to_hiβ the devlink β hwinfo value mapping. and now the other direction, bc we contain multitudes πmax_dl_valβ maximum devlink value supported. for validation only, bestie β don't go using it as a real value, iykyk πmax_hi_valβ maximum HWinfo value supported. also for validation only! same rule, no exceptions π
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/ethernet/netronome/nfp/devlink_param.cβ go read the source, it's right there and it's lowkey iconic π
ngl, a note for the validation girlies:max_dl_valandmax_hi_valare for validation only. that's the whole warning. that's the post. π
πΈ okay that's the page, bestie! this came from the source/version line ./drivers/net/ethernet/netrono... dated October 2026, and yes it's still filed under struct nfp_...param_u8_arg(9) β go forth and map those values, periodt πππ¦
π¦ 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