blkcg_unpin_online(9)
π blkcg_unpin_online(9) β like, the kernel API manual, bestie
okay so real talk, this page lives in the Kernel API Manual (section 9, the fun one), and it's all about blkcg_unpin_online β one tiny function doing the most important cleanup chore in the whole blkcg friend group. let's get into it π
β¨ NAME β¨
blkcg_unpin_online β unpin online state π¦
β¨ SYNOPSIS β¨
void blkcg_unpin_online (struct cgroup_subsys_state *blkcg_css );
β¨ ARGUMENTS β¨
blkcg_cssβ the blkcg of interest π (yes, that's the whole description, it's giving minimal icon behavior)
β¨ DESCRIPTION β¨
so like, this one's basically a matching service for lifetimes, no cap π
It's primarily used to impedance-match blkg and cgwb lifetimes β which is a fancy way of saying it keeps their vibes in sync so that a blkg doesn't go offline while an associated cgwb is still out there being active and living its life π
And here's the main character moment: when this count goes to zero, that means all active cgwbs have finished β
so the blkcg can continue destruction by calling blkcg_destroy_blkgs. periodt. π«Ά
no skipping ahead, bestie β the count hitting zero is the vibe check that says "we're clear, go ahead and clean up." πΈ
β¨ SEE ALSO β¨
Kernel file ./block/blk-cgroup.c π and honestly the whole extended friend group:
blkcg_css(9)blkg_free(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_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)
and that's the whole page, bestie β mwah π it comes to you straight from ./block, dated October 2026, under the blkcg_unpin_online(9) banner. slay, bye! πβ
π¦ 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