STRUCT DEVLINK_RESOURCE(9)
π struct devlink_resource(9) π
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:
devl_resource_register(9)devl_resources_unregister(9)devlink_resources_unregister(9)devl_resource_size_get(9)devl_resource_occ_get_register(9)devl_resource_occ_get_unregister(9)devl_port_resource_register(9)devl_port_resources_unregister(9)
That's the whole page, bestie β source/version: ./net/devlink; date: October 2026; title: struct devlink_resource(9). π«Άπβ¨
π¦ 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