rdtgroup_kn_mode_restore(9)
π rdtgroup_kn_mode_restore β the Kernel API Manual page, but make it make sense π
okay so bestie, this is rdtgroup_kn_mode_restore(9), straight out of the Kernel API Manual β it's giving "tiny function, very specific job, absolutely iconic" energy β¨
β¨ NAME β¨
rdtgroup_kn_mode_restore β literally just: restore user access to a named resctrl file π«Ά
πΈ SYNOPSIS πΈ
int rdtgroup_kn_mode_restore (struct rdtgroup *r , const char *name ,
umode_t mask );
that's the whole vibe. three args, one int back. no cap π
π¦ ARGUMENTS π¦
rβ the resource group that this file is hanging out with, aka its associated group π§nameβ the name of the file. yes, just the name. keep it cute, keep it exact β¨maskβ the mask of permissions that should be restored. this is the part where you tell it which perms get their access back π
π DESCRIPTION π
so what does it actually do? it restores the permissions of the named file. that's the whole thing. main character behavior honestly π
but wait β plot twist π β if name is a directory, then the permissions of its parent will be used instead. not the directory's own perms. the parent's. lowkey important, highkey worth remembering π
β RETURN β
0on success π slay<0on failure π not slay
π₯ SEE ALSO π₯
bestie the friend group is large, and every single one of them is invited to this party:
Kernel file ./fs/resctrl/rdtgroup.c, plus:
closid_allocated(9)rdtgroup_mode_by_closid(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)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)
likeβ¦ the whole resctrl friend group fr fr π«Ά and yes rdtgroup_kn_mode_restrict(9) is right there, its chaotic sibling β one restricts, one restores, they're a matched set π
aaaand that's the page!! π it lives in ./fs/resctrl, it's dated October 2026, and it's part of the Kernel API Manual β so go forth, restore those perms, and remember: if it's a directory, the parent eats. periodt π
β¨π¦
π¦ 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