misc_cg_uncharge(9)
β¨ misc_cg_uncharge(9) β¨
okay so like, welcome to the Kernel API Manual bestie π this one's called misc_cg_uncharge and it's genuinely so straightforward you're gonna slay it.
πΈ NAME πΈ
misc_cg_uncharge β literally just uncharges the misc cgroup. that's the whole vibe. giving very much "undo button" energy π
π¦ SYNOPSIS π¦
void misc_cg_uncharge (enum misc_res_type type , struct misc_cg *cg ,
u64 amount );
look at her. iconic signature. no notes. π
π ARGUMENTS π
typeβ the misc res type that was charged in the first place. you're telling the function what you're giving back, so don't fumble it πcgβ the misc cgroup that's about to get uncharged. this is the main character of the operation ngl π«Άamountβ the charged amount. how much are we handing back? that much. exactly that. π
π§ CONTEXT π§
any context. fr fr, any. no restrictions, no special requirements, she's flexible like that β¨
π SEE ALSO π
all the siblings and neighbors, ok? go read them too, iykyk:
- kernel file
./kernel/cgroup/misc.c parent_misc(9)valid_type(9)misc_cg_set_capacity(9)misc_cg_cancel_charge(9)misc_cg_try_charge(9)misc_cg_max_show(9)misc_cg_max_write(9)misc_cg_current_show(9)misc_cg_peak_show(9)misc_cg_capacity_show(9)misc_cg_alloc(9)misc_cg_free(9)
lowkey a whole family reunion in here and every single one of them is invited π
and that's the page!! mwah π this came from the ./kernel/cgroup corner of the tree, dated October 2026, and yes the footer says misc_cg_uncharge(9) again because she loves a callback. periodt. πβπ
π¦ 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