blkcg_pin_online(9)
π blkcg_pin_online(9) β the Kernel API Manual, but make it make sense β¨
okay so bestie, this one lives in the Kernel API Manual and it's called blkcg_pin_online β say that five times fast, I dare you π it's short, it's sweet, it does exactly one thing and it does it iconically.
β¨ NAME β¨
blkcg_pin_online β pin online state π
like, literally the whole personality of this function is "keep the online state pinned." that's the vibe. no cap.
π¦ SYNOPSIS π¦
void blkcg_pin_online (struct cgroup_subsys_state *blkcg_css );
not me giving you the whole signature verbatim because we do not paraphrase code around here π it returns void, so nothing comes back, it just does the thing.
πΈ ARGUMENTS πΈ
blkcg_cssβ the blkcg of interest π«Ά this is the one you're pointing at, the main character of this whole operation.
π DESCRIPTION π
okay so here's the tea β β while a blkcg is pinned</>, it's kept online. that's it. that's the function. she's simple, she's effective, she slays.
the way that this is primarily used is to impedance-match blkg and cgwb lifetimes β which lowkey sounds like a physics class but it's really just making sure their lifetimes line up so that a blkg doesn't go offline while an associated cgwb is still active. like bestie, we are NOT letting blkg dip out while cgwb is still on the dance floor πΊπ
it's giving chaperone energy. it's giving "nobody leaves until everybody leaves." highkey iconic.
β οΈ quick vibe check: this keeps the blkcg online β it does not describe anything beyond that, so don't go reading extra lore into it, mwah π
π₯ SEE ALSO π₯
okay this list is long and honestly it ate π
- Kernel file
./block/blk-cgroup.c 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_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, blkcg_unpin_online(9) is right there in the list being the literal polar opposite of her β enemies to lovers arc fr fr ππ«Ά
and that's the whole page, bestie! π this gem lives over in ./block and it's dated October 2026, so when you see blkcg_pin_online(9) glowing in your terminal, you'll know exactly who's keeping what online. slay, stay pinned, and don't forget to hydrate ππ§β¨
π¦ 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