blkcg_deactivate_policy(9)
π blkcg_deactivate_policy β the manual page (Kernel API Manual, bestie)
okay so first things first: this is blkcg_deactivate_policy(9) from the Kernel API Manual, and we're about to make deactivating a blkcg policy on a gendisk make Senseβ’. buckle up π
β¨ NAME β¨
blkcg_deactivate_policy β deactivate a blkcg policy on a gendisk
like literally, that's the whole vibe: policy goes off, disk says bye π
π¦ SYNOPSIS π¦
void blkcg_deactivate_policy (struct gendisk *disk , const struct
blkcg_policy *pol );
so you're handing it a disk and a pol, and it returns void β meaning it gives you nothing back, no return value, no lil gift, just vibes and side effects π don't @ me
πΈ ARGUMENTS πΈ
diskβ gendisk of interest π«Ά the disk you're looking at, the main character of this operationpolβ blkcg policy to deactivate β¨ the policy that's getting un-invited from the party
π DESCRIPTION π
Deactivate pol on disk. that's it, that's the whole thing, no cap π
and the important part β the part where you do not freestyle, bestie β it follows the same synchronization rules as blkcg_activate_policy. so whatever locking and ordering energy the activate side has going on, this one is matching it exactly. same rules, different direction. iykyk π₯
ngl this is the "don't get creative with concurrency" part of the page. the manual says "same synchronization rules as blkcg_activate_policy" and it means it fr fr π
π SEE ALSO π
Kernel file ./block/blk-cgroup.c β and then the whole friend group, all of these icons:
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_unpin_online(9)blkcg_css_offline(9)blkcg_activate_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)
bestie do NOT skip blkcg_activate_policy(9) in that list β it's literally the one the DESCRIPTION told you to match synchronization with π§
π sign-off π
and that's the page!! it lives under ./block, this is the October 2026 version of the Kernel API Manual, and we are so obsessed ππ go forth and deactivate responsibly, mwah π«Άβ¨
π¦ 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