rdtgroup_locksetup_enter(9)
π rdtgroup_locksetup_enter(9) π
okay so bestie, welcome to the Kernel API Manual β¨ todayβs main character is rdtgroup_locksetup_enter, and itβs all about getting a resource group into locksetup mode. no cap, this is very much βweβre setting up a pseudo-locked region, pls respect the processβ energy π¦
πΈ NAME πΈ
rdtgroup_locksetup_enter β Resource group enters locksetup mode π
β¨ SYNOPSIS β¨
int rdtgroup_locksetup_enter (struct rdtgroup *rdtgrp );
π ARGUMENTS π
rdtgrpβ the resource group requested to enter locksetup mode. thatβs the one asking for the locksetup glow-up β¨
π DESCRIPTION π
so hereβs the tea π« A resource group enters locksetup mode to reflect that it would be used to represent a pseudo-locked region and is in the process of being set up to do so.
A resource group used for a pseudo-locked region would lose the closid associated with it, so we cannot allow it to have any tasks or cpus assigned, nor permit tasks or cpus to be assigned in the future. Monitoring of a pseudo-locked region is not allowed either π«π
The above and more restrictions on a pseudo-locked region are checked for and enforced before the resource group enters the locksetup mode. like, the vibe check happens first, periodt π
π₯ RETURN π₯
0if the resource group successfully entered locksetup mode β<0on failure π
On failure the last_cmd_status buffer is updated with text to communicate details of failure to the user. very βhereβs what went wrong, bestieβ of it π
π SEE ALSO π
Kernel file: ./fs/resctrl/pseudo_lock.c π
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_restrict(9)rdtgroup_locksetup_user_restore(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)
from the source at ./fs/resctrl, dated October 2026 β bye bestie, go forth and locksetup responsibly ππ
π¦ 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