STRUCT DEVLINK_RESOURCE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the struct devlink_resource(9) page from the Kernel API Manual β€” it's giving kernel resource realness, and we're gonna get you fluent, no cap. 🫢✨


πŸ’– NAME πŸ’–

struct devlink_resource β€” devlink resource.

✨ SYNOPSIS ✨

here's the whole struct, copied exactly because precision is the moment:

       struct devlink_resource {
           const char *name;
           u64 id;
           u64 size;
           u64 size_new;
           bool size_valid;
           struct devlink_resource *parent;
           struct devlink_resource_size_params size_params;
           struct list_head list;
           struct list_head resource_list;
           devlink_resource_occ_get_t *occ_get;
           void *occ_get_priv;
        };

🧚 Members 🧚

  • name β€” name of the resource. literally what it says, bestie.
  • id β€” id, per devlink instance.
  • size β€” size of the resource.
  • size_new β€” updated size of the resource, reload is needed.
  • size_valid β€” valid in case the total size of the resource is valid including its children.
  • parent β€” parent resource.
  • size_params β€” size parameters.
  • list β€” parent list.
  • resource_list β€” list of child resources.
  • occ_get β€” occupancy getter callback.
  • occ_get_priv β€” occupancy getter callback priv.

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./net/devlink/resource.c is the home base, and the whole reference squad is:


That's the whole page, bestie β€” source/version: ./net/devlink; date: October 2026; title: struct devlink_resource(9). πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from