rdtgroup_mode_by_closid(9)
β¨ rdtgroup_mode_by_closid β the kernel API manual, bestie edition β¨
okay so this is a page from the Kernel API Manual (section 9, the kernel API girlies) and it's literally about finding out what mode a resource group is in when all you've got is its closid. Let's get into it π«Ά
πΈ NAME πΈ
rdtgroup_mode_by_closid β return mode of resource group with closid
π¦ SYNOPSIS π¦
enum rdtgrp_mode rdtgroup_mode_by_closid (int closid );
that's the whole signature, no cap. it hands you back an enum rdtgrp_mode and it takes one int closid π
π ARGUMENTS π
closidβ the closid of the resource group, like, which group we're talking about. that's the one and only argument, she's lowkey carrying the whole function π
π DESCRIPTION π
so here's the vibe: every single resource group is associated with a closid. iconic, we love a one-to-one relationship β¨
this function is how you query the mode of a resource group β you search for it using its closid, and boom, you've found your group. that's it, that's the whole job. main character energy fr fr π
π₯ RETURN π₯
it returns the mode as an enum rdtgrp_mode of the resource group that has closid closid. so like, you give it the closid, it gives you back the mode. trade offer accepted π€π
π§ SEE ALSO π§
the kernel file ./fs/resctrl/rdtgroup.c is where this lives, and here's the whole friend group it hangs out with:
closid_allocated(9)rdtgroup_mode_str(9)rdtgroup_remove(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)
and that's the whole page, bestie πΈπ sign-off time: this one's filed under ./fs/resctrl, dated October 2026, and it goes by rdtgroup_mode_by_closid(9) β slay, go read the rest of the group chat π
β
π¦ 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