mon_put_kn_priv(9)
π mon_put_kn_priv(9) π
okay bestie, welcome to the Kernel API Manual β yes, that's the manual name, we're doing this properly. this one's a kernel function page, section 9, and honestly? it's a lil shortie but she's important. let's get into it β¨
πΈ NAME πΈ
mon_put_kn_priv β frees, like, all the allocated mon_data structures. every single one. no cap. π§Ήπ
π SYNOPSIS π
void mon_put_kn_priv (void );
that's the whole signature, bestie. void in, void out. she's simple, she's clean, she's iconic.
π¦ ARGUMENTS π¦
voidβ literally no arguments. zero. nada. nothing to pass in, nothing to worry about. take a breath, you're doing great π«Ά
β DESCRIPTION β
so here's the vibe check: mon_put_kn_priv gets called when the resctrl file system is unmounted. that's it, that's the moment. it's the cleanup era β the allocated mon_data structures get freed and everything gets to go home. β¨
lowkey a main character moment for housekeeping, tbh. π
π SEE ALSO π
okay so these are the friends in the group chat β all the related bits, listed exactly as the page gives them. the kernel file itself lives at ./fs/resctrl/rdtgroup.c, and here's the whole crew:
closid_allocated(9)rdtgroup_mode_by_closid(9)rdtgroup_mode_str(9)rdtgroup_remove(9)rdtgroup_tasks_assigned(9)__rdtgroup_cbm_overlaps(9)rdtgroup_cbm_overlaps(9)rdtgroup_mode_test_exclusive(9)rdtgroup_cbm_to_size(9)rdtgroup_kn_mode_restrict(9)rdtgroup_kn_mode_restore(9)mon_get_kn_priv(9)cbm_ensure_valid(9)mongrp_reparent(9)domain_setup_l3_mon_state(9)resctrl_exit(9)
π reminder bestie: this is kernel code, so it's not like, a suggestion page. read the source, ./fs/resctrl/rdtgroup.c, before you go touching things. iykyk π
and that's a wrap on this one! π the page comes from the source path ./fs/resctrl and she's dated October 2026 β so jot that down, and remember us fondly whenever you unmount that resctrl filesystem. stay slay, stay free of leaked mon_data structs. ππ¦β¨
π¦ 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