region_find_by_minor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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