adf_dev_get(9)
π 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 π₯
0when successful β slay, we love a zero πEFAULTwhen 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:
- Kernel file
./drivers/crypto/intel/qat/qat_common/adf_dev_mgr.cβ the source file, the origin story π§ adf_clean_vf_map(9)adf_devmgr_update_class_index(9)adf_devmgr_add_dev(9)adf_devmgr_rm_dev(9)adf_devmgr_pci_to_accel_dev(9)adf_dev_in_use(9)adf_dev_put(9)adf_devmgr_in_reset(9)adf_dev_started(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms