devl_resourc...get_register(9)
π NAME
okay bestie, welcome to the Kernel API Manual page for devl_resourc...get_register(9) β yes, the title is truncated like that, don't come for me π. The actual function is devl_resource_occ_get_register, aka register occupancy getter β¨. It's giving βshort name, important registration jobβ energy π
.
β¨ SYNOPSIS β¨
void devl_resource_occ_get_register (struct devlink *devlink , u64
resource_id , devlink_resource_occ_get_t *occ_get , void *occ_get_priv
);
No cap, it returns void, so there is no return value to catch β the signature said what it said π«Ά.
π ARGUMENTS π
devlinkβdevlink. The official one-liner is literally just βdevlinkβ, so we're keeping it minimal, iykyk π.resource_idβresource id; in the synopsis it's au64, so yes, a 64-bit resource id β¨.occ_getβoccupancy getter callback; its type in the synopsis isdevlink_resource_occ_get_t *π.occ_get_privβoccupancy getter callback priv; that's the privatevoid *for the occupancy getter callback, and the manpage keeps the description short and sweet fr fr π.
π SEE ALSO π
If you're going full main-character research mode, these are the references:
- Kernel file
./net/devlink/resource.c struct devlink_resource(9)devl_resource_register(9)devl_resources_unregister(9)devlink_resources_unregister(9)devl_resource_size_get(9)devl_resource_occ_get_unregister(9)devl_port_resource_register(9)devl_port_resources_unregister(9)
mwah π β sourced from ./net/devlink, dated October 2026, on the devl_resourc...get_register(9) page. Slay and read the source, bestie π¦.
π¦ 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