blkcg_policy_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ blkcg_policy_register(9) πŸŽ€

okay so this is from the Kernel API Manual, and it’s literally the page for registering a blkcg policy. bestie, if you’re deep in block-cgroup land, this is your girl. πŸ’…


πŸ’– NAME πŸ’–

blkcg_policy_register β€” register a blkcg policy


✨ SYNOPSIS ✨

int blkcg_policy_register (struct blkcg_policy *pol );

🫢 ARGUMENTS 🫢

  • pol β€” the blkcg policy you’re registering, no cap.

🌸 DESCRIPTION 🌸

okay so the whole point: this registers pol with the blkcg core. that’s the job. ✨

it might sleep 😴, so like… be normal about that. also heads up: pol may be modified on successful registration, so don’t clutch your struct too hard, bestie.

it returns 0 on success and -errno on failure. slay. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./block/blk-cgroup.c β€” go read the source, it’s giving main character energy. 🌈


byeee πŸ’– source/version: ./block Β· date: October 2026. mwah 🫢

πŸ“¦ where this page comes from