STRUCT DEVLINK_RESOURCE_SIZE_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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's enum devlink_resource_unit energy.

πŸ¦‹ 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