rdtgroup_loc...ser_restrict(9)
β¨ 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:
pseudo_lock_minor_get(9)pseudo_lock_minor_release(9)region_find_by_minor(9)struct pseudo_lock_pm_req(9)pseudo_lock_cstates_constrain(9)pseudo_lock_region_clear(9)pseudo_lock_region_init(9)pseudo_lock_init(9)pseudo_lock_region_alloc(9)pseudo_lock_free(9)rdtgroup_monitor_in_progress(9)rdtgroup_locksetup_user_restore(9)rdtgroup_locksetup_enter(9)rdtgroup_locksetup_exit(9)rdtgroup_cbm_overlaps_pseudo_locked(9)rdtgroup_pseudo_locked_in_hierarchy(9)pseudo_lock_measure_cycles(9)rdtgroup_pseudo_lock_create(9)rdtgroup_pseudo_lock_remove(9)
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
- 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