rdtgroup_remove(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

rdtgroup_remove(9) β€” okay bestie, from the Kernel API Manual: rdtgroup_remove is the helper to remove a resource group safely, periodt. 🫢

✨ SYNOPSIS ✨

void rdtgroup_remove (struct rdtgroup *rdtgrp );

πŸŽ€ ARGUMENTS πŸŽ€

  • rdtgrp β€” the resource group to remove. That's the whole argument, bestie; she's taking one struct rdtgroup * and that's it. πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so when a resource group is created via a mkdir, an extra kernfs_node reference is taken. Why? To ensure that the rdtgroup structure remains accessible for the rdtgroup_kn_unlock calls where it is removed. No cap, that extra ref is doing important work. πŸ’…

The default group is statically allocated: it does not have an extra reference, but it will have RDT_DELETED set on unmount to support safe access to its associated files via rdtgroup_kn_lock_live/rdtgroup_kn_unlock. iykyk ✨

For all but the default group: drop the extra reference, then free the rdtgroup structure. That's the whole removal arc. πŸ¦‹

🌸 RETURN 🌸

void β€” literally nothing comes back, bestie. It's giving void and we respect it. 🌸

πŸ’… SEE ALSO πŸ’…

Kernel file ./fs/resctrl/rdtgroup.c is the file bestie, and these are the linked faves:

source/version: ./fs/resctrl Β· date: October 2026 Β· page: rdtgroup_remove(9) β€” bye bestie, slay this removal safely πŸ’…βœ¨

πŸ“¦ where this page comes from