blkg_free(9)
π blkg_free(9) π
okay so bestie, welcome to blkg_free β section 9 of the Kernel API Manual, aka the little corner of the kernel where we let the blkg go π¦
β¨ NAME β¨
blkg_free β free a blkg. that's it. that's the whole vibe. one job, no notes π₯
πΈ SYNOPSIS πΈ
void blkg_free (struct blkcg_gq *blkg );
no return value, no drama, it's a void β it gives you nothing back and honestly? iconic. π
π ARGUMENTS π
blkgβ the blkg to free. like, this specific one, bestie. hand it over and it's gone π«Ά
π DESCRIPTION π
Free blkg β and here's the lowkey important part: that blkg may be partially allocated π
so likeβ¦ it doesn't have to be all finished and perfect and fully built out. half-constructed? still valid. still gets freed. it's giving "cleanup crew has no standards, they just have a job to do" π§Ήβ¨ which fr fr is the point β you can call this on a blkg that never made it all the way, no cap.
π¦ SEE ALSO π¦
okay this list is long and I'm obsessed π it's all chilling in the kernel file ./block/blk-cgroup.c, and here's every single one, in order, no skips:
blkcg_css(9)bio_blkcg_css(9)blkcg_parent(9)blkg_alloc(9)blkg_lookup_create(9)blkcg_print_blkgs(9)__blkg_prfill_u64(9)blkg_conf_init(9)blkg_conf_open_bdev(9)blkg_conf_prep(9)blkg_conf_unprep(9)blkg_conf_close_bdev(9)blkcg_destroy_blkgs(9)blkcg_pin_online(9)blkcg_unpin_online(9)blkcg_css_offline(9)blkcg_activate_policy(9)blkcg_deactivate_policy(9)blkcg_policy_register(9)blkcg_policy_unregister(9)blkcg_maybe_throttle_current(9)blkcg_schedule_throttle(9)blkcg_add_delay(9)blkg_tryget_closest(9)bio_associate_blkg_from_css(9)bio_associate_blkg(9)bio_clone_blkg_association(9)
like that's a whole friend group and blkg_free is the one who shows up at the end to close out the party ππ
reminder bestie: everything above lives in ./block/blk-cgroup.c π go read the source, it's good for you, iykyk π
mwah, that's the page!! π
β¨ this little beauty comes to you straight outta ./block and it's dated October 2026 β see you then, bestie πππ
π¦ 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