xe_gt_stats_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘

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