blkg_tryget_closest(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ blkg_tryget_closest(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual page for blkg_tryget_closest(9) β€” yes, that's the whole title vibe, and we're gonna get through it together πŸ’–


πŸ’– NAME πŸ’–

blkg_tryget_closest β€” β€œtry and get a blkg ref on the closet blkg.” The page literally says β€œcloset” and I'm not fixing it, that's iconic πŸ’…


✨ SYNOPSIS ✨

Here's the signature, copied exactly because we do not mess with code in this group chat:

struct blkcg_gq * blkg_tryget_closest (struct bio *bio , struct
cgroup_subsys_state *css );

🧸 ARGUMENTS 🧸

  • bio β€” the target bio, aka the bio we're aiming at 🎯
  • css β€” the target css, simple as that ✨

πŸ’« DESCRIPTION πŸ’«

So the failure mode here is that we walk up the blkg tree, and because of that, this makes sure the blkg->parent pointers are always valid. No stale-parent nonsense, periodt 🫢

It returns the blkg it ended up taking a reference on β€” or NULL if no reference was taken. That's the whole deal, bestie πŸ’–


🌈 SEE ALSO 🌈

Kernel file: ./block/blk-cgroup.c β€” and here's the whole squad, every single one, no skips:


mwah πŸ’‹ that's the page, bestie! It comes from source/version ./block, dated October 2026, and it's all about blkg_tryget_closest(9). slay and goodbye 🫢✨

πŸ“¦ where this page comes from