blkg_tryget(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” the blkg to 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 πŸ’…. The blkg might be mid-free, so the refcnt check is the vibe check.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./block/blk-cgroup.h β€” and the SEE ALSO crew is:


cute sign-off time πŸŽ€: source is ./block, dated October 2026, and the page is blkg_tryget(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from