blkg_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… blkg_get(9) β€” the Kernel API Manual glow-up

Okay so bestie, welcome to blkg_get, a page straight outta the Kernel API Manual. It's short, it's sweet, and it's lowkey the reference-counting baddie you didn't know you needed. Let's get into it ✨


πŸŽ€ NAME πŸŽ€

blkg_get β€” get a blkg reference. That's it. That's the whole vibe. Grab a ref, be the main character 🫢


⭐ SYNOPSIS ⭐

void blkg_get (struct blkcg_gq *blkg );

Literally one line, no cap. Note the return type is void β€” she gives you nothing back except the ref itself, and honestly? Iconic πŸ’…


🌸 ARGUMENTS 🌸

  • blkg β€” the blkg you wanna get a reference on. That's the whole parameter, bestie. Hand it over and let her cook πŸ“

πŸ’– DESCRIPTION πŸ’–

Okay so here's the situation: the caller should be holding an existing reference.

That's the whole description. She's concise, she's a little mysterious, she knows her worth πŸ‘‘ The takeaway is you gotta already have a reference in hand before you go calling this β€” that's the rule, fr fr. Don't come in empty-handed πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./block/blk-cgroup.h β€” plus the whole friend group, all invited to the function party:

Every single one, present and accounted for. Go read them, they're literally right there 🧚


Ngl the whole page is basically "you should already hold a reference" β€” so like, do that first? Please? For me? πŸ₯Ί

And that's a wrap, bestie! This adorable little number lives in ./block, and she was blessed upon the world in October 2026, answering to the name blkg_get(9). Slay, stay ref-counted, and remember: hold your reference before you get another one πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from