devl_resourc...get_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 a u64, so yes, a 64-bit resource id ✨.
  • occ_get β€” occupancy getter callback; its type in the synopsis is devlink_resource_occ_get_t * πŸŽ€.
  • occ_get_priv β€” occupancy getter callback priv; that's the private void * 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:


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