xe_gt_stats_init(9)
β¨ xe_gt_stats_init(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one is xe_gt_stats_init from section 9, and it's honestly such a lil function with main character energy β it just sets up your stats and dips π«Ά
πΈ NAME πΈ
xe_gt_stats_init β Initialize GT statistics π
π¦ SYNOPSIS π¦
int xe_gt_stats_init (struct xe_gt *gt );
π ARGUMENTS π
gtβ the GT structure π like, that's it, that's the whole argument. she takes one (1) pointer and she's ready to go.
β DESCRIPTION β
So what she actually does is allocate per-CPU GT statistics β¨ and the reason is lowkey iconic: per-CPU stats mean increments can happen without cross-CPU atomics π₯ no cap, that's the whole flex. every CPU gets its own little stats spot so nobody's fighting over shared memory, and honestly? slay. π
π RETURN π
0β success, we ate π-ENOMEMβ failure, out of memory, it's giving tragic π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_gt_stats.cβ Xe GT Statistics(9) xe_gt_stats_incr(9)xe_gt_stats_print_info(9)xe_gt_stats_clear(9)
like, go read the whole friend group, they're all connected fr fr π§
ngl bestie, always check that return value β if you get -ENOMEM back, your stats did not get allocated and you're gonna have a bad time π
mwah π this little page came from ./drivers/gpu/drm/xe, dated October 2026 β that's the vibe check, we're done here, bye bestie π¦β¨
π¦ 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