rdtgroup_locksetup_enter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

  • 0 if the resource group successfully entered locksetup mode βœ…
  • <0 on 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 πŸ“


from the source at ./fs/resctrl, dated October 2026 β€” bye bestie, go forth and locksetup responsibly πŸ’–πŸŽ€

πŸ“¦ where this page comes from