blkg_conf_open_bdev(9)
π blkg_conf_open_bdev(9) β like, the kernel API manual, but make it make sense
okay bestie, so we're in the kernel API manual section today, and this one is a lil function called blkg_conf_open_bdev β¨ she's not famous but she's essential, yk?
πΈ NAME πΈ
blkg_conf_open_bdev β parse and open bdev for per-blkg config update π
β¨ SYNOPSIS β¨
int blkg_conf_open_bdev (struct blkg_conf_ctx *ctx );
literally that's it. one function, one pointer, zero drama π
π«Ά ARGUMENTS π«Ά
ctxβ ablkg_conf_ctxthat you already initialized withblkg_conf_init. like, don't come at her with an uninitialized ctx, that's not the vibe π
π₯ DESCRIPTION π₯
okay so here's the tea β β this function parses the device node prefix part, the MAJ:MIN, of a per-blkg config update. she reads it out of ctx->input, then gets and stores the matching bdev in ctx->bdev. iconic. no cap. π
and then, because she's generous, ctx->body gets set to point past the device node prefix. so everything after the MAJ:MIN is just sitting there waiting for you. main character energy fr fr π
π RETURN π
-errno on error. yeah. that's the whole return section. she's a woman of few words π
π¦ SEE ALSO π¦
Kernel file ./block/blk-cgroup.c β go read the source bestie, it's literally right there π§
and she rolls with a whole squad, so let's give them all their flowers π:
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_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 the whole group chat. slay π
okay that's the page!! sourced from the Kernel file in ./block, dated October 2026, and yes she's still serving the exact same blkg_conf_open_bdev(9) realness π go forth and parse those device nodes, 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