blkg_lookup(9)
π
blkg_lookup(9) β Kernel API Manual, bestie edition π
okay so hi bestie π we're in the Kernel API Manual and this is the blkg_lookup(9) page. It's giving kernel-cgroup lookup realness, and yes, you're gonna understand it. π¦
πΈ NAME
blkg_lookup β lookup blkg for the specified blkcg - q pair. That's the whole name vibe: one lookup, one blkcg - q pair, no cap. β¨
β¨ SYNOPSIS
struct blkcg_gq * blkg_lookup (struct blkcg *blkcg , struct
request_queue *q );
That's the signature, bestie β copy it exactly if you're quoting it, because kernel signatures are not a choose-your-own-adventure. π
π ARGUMENTS
blkcgβ blkcg of interest. Like, the one you're curious about. πqβ request_queue of interest. The queue in question, periodt. π«Ά
π DESCRIPTION
okay so this function looks up the blkg for the blkcg - q pair. That's the move. β¨
β οΈ Must be called in a RCU critical section. This is not optional, bestie β the manpage literally says must, so keep your lookup inside that RCU critical section. π
π₯ SEE ALSO
The whole SEE ALSO squad, iykyk: π
- Kernel file
./block/blk-cgroup.h bio_issue_as_root_blkg(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_set_delay(9)blkcg_clear_delay(9)blk_cgroup_mergeable(9)
xoxo, your Kernel API Manual bestie π source/version: ./block Β· date: October 2026 Β· page: blkg_lookup(9) β¨
π¦ 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