pseudo_lock_region_init(9)
πΈ NAME πΈ
okay so welcome to the pseudo_lock_region_init(9) page from the Kernel API Manual, bestie π this one is literally about initializing pseudo-lock region information, and it's giving very specific setup energy.
π¦ SYNOPSIS π¦
int pseudo_lock_region_init (struct pseudo_lock_region *plr );
π ARGUMENTS π
plrβ the pseudo-lock region π«Ά this is the little region struct we're setting up.
β¨ DESCRIPTION β¨
so picture this: this function is called after the user already provided a schemata to be pseudo-locked. On entry, struct pseudo_lock_region is already initialized with the resource, domain, and capacity bitmask. From that data, this function deduces the info required for pseudo-locking and initializes struct pseudo_lock_region further. highkey important stuff π
the information it works out includes:
- size in bytes of the region to be pseudo-locked π
- cache line size, so we know the stride with which data needs to be accessed to be pseudo-locked π§
- a CPU associated with the cache instance on which the pseudo-locking flow can be executed π
π₯ RETURN π₯
0 on success, <0 on failure. A descriptive error will be written to the last_cmd_status buffer π no cap, that's where the tea gets spilled.
π SEE ALSO π
Kernel file ./fs/resctrl/pseudo_lock.c β and the whole SEE ALSO 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_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_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)
made with π from the source/version ./fs/resctrl, dated October 2026 β that's the cute little sign-off, bestie, bye! π
π¦ 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