rdtgroup_mode_by_closid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ rdtgroup_mode_by_closid β€” the kernel API manual, bestie edition ✨

okay so this is a page from the Kernel API Manual (section 9, the kernel API girlies) and it's literally about finding out what mode a resource group is in when all you've got is its closid. Let's get into it 🫢


🌸 NAME 🌸

rdtgroup_mode_by_closid β€” return mode of resource group with closid


πŸ¦‹ SYNOPSIS πŸ¦‹

enum rdtgrp_mode rdtgroup_mode_by_closid (int closid );

that's the whole signature, no cap. it hands you back an enum rdtgrp_mode and it takes one int closid πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • closid β€” the closid of the resource group, like, which group we're talking about. that's the one and only argument, she's lowkey carrying the whole function πŸ’–

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe: every single resource group is associated with a closid. iconic, we love a one-to-one relationship ✨

this function is how you query the mode of a resource group β€” you search for it using its closid, and boom, you've found your group. that's it, that's the whole job. main character energy fr fr 🌈


πŸ”₯ RETURN πŸ”₯

it returns the mode as an enum rdtgrp_mode of the resource group that has closid closid. so like, you give it the closid, it gives you back the mode. trade offer accepted πŸ€πŸ’œ


🧚 SEE ALSO 🧚

the kernel file ./fs/resctrl/rdtgroup.c is where this lives, and here's the whole friend group it hangs out with:


and that's the whole page, bestie πŸŒΈπŸ’– sign-off time: this one's filed under ./fs/resctrl, dated October 2026, and it goes by rdtgroup_mode_by_closid(9) β€” slay, go read the rest of the group chat πŸ’…β­

πŸ“¦ where this page comes from