pseudo_lock_minor_get(9)
π pseudo_lock_minor_get(9) π
okay so bestie, welcome to the Kernel API Manual page for pseudo_lock_minor_get(9) β yes the title is also the name, we love a self-titled icon β¨
β¨ NAME β¨
pseudo_lock_minor_get β Obtain available minor number π
π¦ SYNOPSIS π¦
int pseudo_lock_minor_get (unsigned int *minor );
like, that's literally it. one function, one pointer, infinite potential π
πΈ ARGUMENTS πΈ
minorβ Pointer to where new minor number will be stored. that's the spot where the shiny new minor number gets dropped off π«Ά
π DESCRIPTION π
so the way this works: a bitmask is used to track available minor numbers. here, the next free minor number is marked as unavailable and returned. lowkey elegant, highkey iconic π
like β it's giving "i found a free spot and i'm claiming it," no cap β¨
β RETURN β
0on success π<0on failure π
π SEE ALSO π
okay this list is LONG and every single one is here because we don't skip entries in this house π
Kernel file ./fs/resctrl/pseudo_lock.c, plus:
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_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)
go read those too, iykyk π₯
fr fr bestie, this page lives in ./fs/resctrl and it's dated October 2026 β so like, future vibes only π¦π
k byeee, go get those minor numbers, you're gonna slay π β¨π
π¦ 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