rdtgroup_loc...ser_restrict(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the Kernel API Manual page for rdtgroup_locksetup_user_restrict β€” the header gets chopped down to rdtgroup_loc...ser_restrict(9), which is lowkey tragic but we move. πŸ’…

rdtgroup_locksetup_user_restrict β€” Restrict user access to group. periodt. πŸ’–


🌸 SYNOPSIS 🌸

int rdtgroup_locksetup_user_restrict (struct rdtgroup *rdtgrp );

πŸŽ€ ARGUMENTS πŸŽ€

  • rdtgrp β€” resource group needing access restricted. that's the resource group whose access is getting restricted, bestie. 🫢

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: a resource group used for cache pseudo-locking cannot have cpus or tasks assigned to it. like, not a single one. 😀

This is communicated to the user by restricting access to all the files that can be used to make such changes β€” the kernel is basically putting those files behind a velvet rope. 🚧✨

Permissions restored with rdtgroup_locksetup_user_restore β€” yes, there's a restore bestie for the permissions. 🫢


πŸ”₯ RETURN πŸ”₯

0 on success, <0 on failure. πŸŽ‰

If a failure occurs during the restriction of access, an attempt will be made to restore permissions, but the state of the mode of these files will be uncertain when a failure occurs. 😭 so yeah: failure is messy, and the vibe check on those file modes is not guaranteed. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./fs/resctrl/pseudo_lock.c is the source file to peek at, and the whole squad is:


mwah πŸ’‹ β€” huge kiss from the ./fs/resctrl source, October 2026 edition. The footer name is still the delightfully chopped rdtgroup_loc...ser_restrict(9), as ever. byeee bestie 🫢✨

πŸ“¦ where this page comes from