blkg_tryget(9)
πΈ NAME πΈ
okay so welcome to blkg_tryget(9), straight from the Kernel API Manual π. This page is about blkg_tryget β try and get a blkg reference. That's the whole name-section vibe: try, get, reference, slay β¨.
β¨ SYNOPSIS β¨
the signature is literally:
bool blkg_tryget (struct blkcg_gq *blkg );
no cap, that space before the ); is part of the original, bestie π«Ά.
π ARGUMENTS π
blkgβ theblkgto get π. That's it; that's the assignment.
π DESCRIPTION π
so here's the tea π: this is for use when doing an RCU lookup of the blkg. We may be in the midst of freeing this blkg, which is why we can only use it if the refcnt is not zero. important caveat, fr fr: the refcnt has to be nonzero for this to be usable.
bestie, this is a try situation π . Theblkgmight be mid-free, so therefcntcheck is the vibe check.
π¦ SEE ALSO π¦
Kernel file ./block/blk-cgroup.h β and the SEE ALSO crew is:
bio_issue_as_root_blkg(9)blkg_lookup(9)blkg_to_pd(9)pd_to_blkg(9)blkg_get(9)blkg_put(9)blkg_for_each_descendant_pre(9)blkg_for_each_descendant_post(9)blkcg_set_delay(9)blkcg_clear_delay(9)blk_cgroup_mergeable(9)
cute sign-off time π: source is ./block, dated October 2026, and the page is blkg_tryget(9) β 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