rdtgroup_remove(9)
π 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 onestruct 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:
closid_allocated(9)rdtgroup_mode_by_closid(9)rdtgroup_mode_str(9)rdtgroup_tasks_assigned(9)__rdtgroup_cbm_overlaps(9)rdtgroup_cbm_overlaps(9)rdtgroup_mode_test_exclusive(9)rdtgroup_cbm_to_size(9)rdtgroup_kn_mode_restrict(9)rdtgroup_kn_mode_restore(9)mon_get_kn_priv(9)mon_put_kn_priv(9)cbm_ensure_valid(9)mongrp_reparent(9)domain_setup_l3_mon_state(9)resctrl_exit(9)
source/version: ./fs/resctrl Β· date: October 2026 Β· page: rdtgroup_remove(9) β bye bestie, slay this removal safely π
β¨
π¦ 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