cnv_err_stats_alloc(9)
π cnv_err_stats_alloc β like, the whole manual, bestie
okay so this is a page from the Kernel API Manual (manual section 9, kernel API vibes, iykyk) and it's about one single little function that lowkey carries the CNV stats game. buckle up, it's short and it slays π
β¨ NAME β¨
cnv_err_stats_alloc β get CNV stats for the provided device. that's it, that's the whole job, no cap π
π¦ SYNOPSIS π¦
struct cnv_err_stats * cnv_err_stats_alloc (struct adf_accel_dev *accel_dev );
like... it takes a device pointer and hands you back a struct cnv_err_stats *. main character function energy, honestly.
πΈ ARGUMENTS πΈ
accel_devβ pointer to a QAT acceleration device. yeah, that's the thing you're asking for stats about π«Ά
π DESCRIPTION π
so here's the tea β β this function allocates and populates a whole table of CNV error statistics, and it does it for each non-admin AE that's available through the acceleration device you passed in. every single one. not just the admin one. we're being thorough, periodt β¨
important, bestie: the caller becomes the owner of that memory. it's yours now. you are responsible for deallocating it β and the way you do that is by calling kfree. not me forgetting to free and leaking memory π don't be that girl. free your stuff.
β RETURN β
- on success β a pointer to a dynamically allocated
struct cnv_err_statsπ - on error β a negative value π
so like, vibe check your return value before you dereference it, fr fr.
π SEE ALSO π
- Kernel file
./drivers/crypto/intel/qat/qat_common/adf_cnv_dbgfs.cβ go read the source, it's giving lore π
that's the whole page, bestie, you ate it up ππ this cutie was brought to you by source ./drivers/crypto/intel/qat/qat..., dated October 2026 β mwah, go free your memory ππ§π₯
π¦ 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