region_find_by_minor(9)
π NAME π
okay so bestie, this is region_find_by_minor from the Kernel API Manual (section 9), and it has one very specific job: it locates a pseudo-lock region by inode minor number. no cap. π
β¨ SYNOPSIS β¨
struct rdtgroup * region_find_by_minor (unsigned int minor );
π«Ά ARGUMENTS π«Ά
minorβ the minor number of the device representing the pseudo-locked region. that's the whole arg, she's simple and useful. π
π DESCRIPTION π
so when the character device is accessed, we need to determine which pseudo-locked region it belongs to. the way that happens is by matching the minor number of the device to the pseudo-locked region it belongs to. literally matchmaking, but for kernel things. π₯
minor numbers are assigned at the time a pseudo-locked region is associated with a cache instance. periodt.
π RETURN π
on success, it returns a pointer to the resource group owning the pseudo-locked region. on failure, it returns NULL. that's it, that's the vibe check. π
π¦ SEE ALSO π¦
the kernel file ./fs/resctrl/pseudo_lock.c is the home base, and these are the besties you should also go read:
pseudo_lock_minor_get(9)pseudo_lock_minor_release(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)
okay bye bestie! this page comes from ./fs/resctrl, dated October 2026, and it's region_find_by_minor(9) β mwah ππ
π¦ 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