rdtgroup_kn_mode_restore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • 0 on success πŸŽ‰ slay
  • <0 on 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:

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