blkcg_set_delay(9)
π blkcg_set_delay β the Kernel API Manual edition, bestie β¨
okay so real talk, this one's from the Kernel API Manual (section 9, kernel-functions energy), and it's lowkey a little diva function. let's get into it π
β¨ NAME β¨
blkcg_set_delay β turns on the allocator delay mechanism with the exact delay amount you hand it. that's the whole gig. no cap π«Ά
πΈ SYNOPSIS πΈ
void blkcg_set_delay (struct blkcg_gq *blkg , u64 delay );
like... that's it. void return, two args, she's simple and she knows it π
π¦ ARGUMENTS π¦
blkgβ the targetblkg. the main character of this operation, fr fr πdelayβ the delay duration, measured in nsecs (nanoseconds, bestie, we're down to the nano level here β±οΈβ¨)
π DESCRIPTION π
so when you enable this thing with this function, hear me out: the delay is not decayed. like, it does not fade, it does not shrink, it does not gently let itself out β nothing. it just sits there π
because of that, you have to explicitly clear it with blkcg_clear_delay. no auto-cleanup, no self-care, you gotta do the work yourself π€
β οΈ also and this is the important part: Must not be mixed withblkcg_[un]use_delayandblkcg_add_delayusages. like do not. do not do that. the vibes will be rancid and it's giving undefined-behavior-adjacent chaos π keep your delay mechanisms in separate lanes, iykyk π
π₯ SEE ALSO π₯
the whole friend group, in order, exactly as listed:
- Kernel file
./block/blk-cgroup.h bio_issue_as_root_blkg(9)blkg_lookup(9)blkg_to_pd(9)pd_to_blkg(9)blkg_get(9)blkg_tryget(9)blkg_put(9)blkg_for_each_descendant_pre(9)blkg_for_each_descendant_post(9)blkcg_clear_delay(9)blk_cgroup_mergeable(9)
like genuinely go read blkcg_clear_delay(9) next, she's literally the cleanup crew for this one π§Ήπ
and that's the page, bestie!! sourced fresh from ./block, dated October 2026, filed under blkcg_set_delay(9) β slay, go touch some block cgroups, ily, 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