adf_dev_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ adf_dev_get(9) β€” like, the Kernel API Manual, but make it make sense πŸ’…

okay bestie, so you know how the manual pages have that big header at the top with the name and the section number and the manual title? Yeah. This one's adf_dev_get(9), it lives in the Kernel API Manual, and honestly it's a little cutie. Let's get into it. ✨


πŸ’– NAME πŸ’–

adf_dev_get β€” Increment accel_dev reference count. That's it. That's the whole vibe. She bumps the refcount, she slays, she goes home. 🫢


🌸 SYNOPSIS 🌸

int adf_dev_get (struct adf_accel_dev *accel_dev );

No cap, that's the whole signature. One argument, returns an int. Iconic behaviour, honestly. ⭐


πŸ¦‹ ARGUMENTS πŸ¦‹

  • accel_dev β€” Pointer to acceleration device. That's your main character right there πŸŽ€ β€” hand her the pointer and she'll do the rest.

✨ DESCRIPTION ✨

So here's the tea, bestie πŸ“: adf_dev_get increments the accel_dev refcount. Lowkey simple. But β€” and this is the part people miss β€” if this is the first time you're incrementing it during the period the accel_dev is in use, she also increments the module refcount too. Two refcounts, one call. We love an efficient queen. πŸ‘‘

This one is meant to be used by QAT device specific drivers. So like, iykyk β€” if you're not writing one of those, this probably isn't your page. πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

  • 0 when successful β€” slay, we love a zero πŸ’œ
  • EFAULT when fail to bump module refcount β€” 😭 not the module refcount refusing to budge

🌈 SEE ALSO 🌈

okay this section is giving link tree, and honestly? Obsessed. Go look at all of these:

fr fr, if you're bumping a refcount you definitely want to know about adf_dev_put(9) β€” that's the other half of the story, bestie. πŸ’€

πŸŽ€ cute little sign-off πŸŽ€

This page is from ./drivers/crypto/intel/qat/qat... (yes, the path got cut off in the footer, don't come for me πŸ™ˆ), dated October 2026, and it's part of the Kernel API Manual. Go forth and increment responsibly, my love. πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from