uncharge_cg_locked(9)
β¨ NAME β¨
okay so welcome to uncharge_cg_locked(9) from the Kernel API Manual, bestie π this page is literally about how you uncharge a resource for the rdma cgroup β yes, itβs giving βput that resource backβ energy, but make it kernel-level π«Ά
π¦ SYNOPSIS π¦
void uncharge_cg_locked (struct rdma_cgroup *cg , struct rdmacg_device
*device , enum rdmacg_resource_type index );
π ARGUMENTS π
cgβ pointer to the cg youβre uncharging, and all the parents in the hierarchy too β not just one lonely cg, bestie, the whole family tree gets handled πdeviceβ pointer to therdmacgdevice, iconic β¨indexβ the index of the resource to uncharge incg(aka the resource pool) π
πΈ DESCRIPTION πΈ
so hereβs the extra cleanup moment: it also frees the resource pool that was created as part of the charging operation β but only when there are no resources attached to the resource pool. literally βif itβs empty, free itβ vibes π§ββοΈ no cap.
π₯ SEE ALSO π₯
go give these pages some love too, bestie π«Ά
Kernel file ./kernel/cgroup/rdma.cβ yes, the kernel file itself is listed here πrdmacg_event_locked(9)rdmacg_uncharge_hierarchy(9)rdmacg_uncharge(9)rdmacg_try_charge(9)rdmacg_register_device(9)rdmacg_unregister_device(9)rdmacg_css_offline(9)
k thatβs the whole page, bestie π«Ά this manual lives in ./kernel/cgroup, dated October 2026, and itβs the uncharge_cg_locked(9) moment. 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