blkg_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: 🌈


xoxo, your Kernel API Manual bestie πŸ’– source/version: ./block Β· date: October 2026 Β· page: blkg_lookup(9) ✨

πŸ“¦ where this page comes from