STRUCT DEVLINK_RESOURCE_SIZE_PARAMS(9)
π struct devlink_resource_size_params(9) π
okay bestie, welcome to the struct devlink_resource_size_params(9) page πΈ this is from the Kernel API Manual and it's literally the resource's size parameters β the little bundle of numbers that tells you how big a devlink resource is allowed to be and in what unit. ikyk, iykyk π
β¨ NAME β¨
struct devlink_resource_size_params β resource's size parameters π¦
π SYNOPSIS π
here's the whole struct, copy it exactly bestie, no cap:
struct devlink_resource_size_params {
u64 size_min;
u64 size_max;
u64 size_granularity;
enum devlink_resource_unit unit;
};
π Members π
size_minβ the minimum size you can set π like, you cannot go below this, periodt.size_maxβ the maximum size you can set π₯ it's giving "ceiling, but make it firmware".size_granularityβ the size granularity β¨ the step size, the increment, the vibe check your sizes have to pass.unitβ the resource's basic unit π which unit we're measuring in, that'senum devlink_resource_unitenergy.
π¦ SEE ALSO π¦
Kernel file ./include/net/devlink.h β and honestly the whole devlink friend group shows up here, so let's shout them all out π:
struct devlink_port_pci_pf_attrs(9)struct devlink_port_pci_vf_attrs(9)struct devlink_port_pci_sf_attrs(9)struct devlink_port_attrs(9)struct devlink_linecard_ops(9)struct devlink_dpipe_field(9)struct devlink_dpipe_header(9)struct devlink_dpipe_match(9)struct devlink_dpipe_action(9)struct devlink_dpipe_value(9)struct devlink_dpipe_entry(9)struct devlink_dpipe_dump_ctx(9)struct devlink_dpipe_table(9)struct devlink_dpipe_table_ops(9)struct devlink_dpipe_headers(9)struct devlink_flash_notify(9)struct devlink_param(9)struct devlink_flash_update_params(9)struct devlink_region_ops(9)struct devlink_port_region_ops(9)struct devlink_health_reporter_ops(9)struct devlink_trap_metadata(9)struct devlink_trap_policer(9)struct devlink_trap_group(9)struct devlink_trap(9)struct devlink_port_ops(9)
ngl bestie, nothing here is dangerous β it's just numbers describing sizes. but keep an eye on that granularity or the sizes won't line up and the kernel will be like π
mwah, that's the page π«Ά it lives under ./include/net and the version/date stamp on this one is October 2026 β so go forth and size your resources, main character energy only π
β¨π
π¦ 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