xe_gt_stats_ktime_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_gt_stats_ktime_get(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this lil page is literally all about one tiny helper function and honestly? it's giving "small but mighty" energy. ✨


🌸 NAME 🌸

xe_gt_stats_ktime_get β€” Get current ktime πŸ•

like... that's it. that's the whole name. short, sweet, iconic.


πŸŽ€ SYNOPSIS πŸŽ€

ktime_t xe_gt_stats_ktime_get (void );

no cap, that's the whole signature. copy it exactly, bestie, spacing and all β€” don't go "fixing" it, i'm watching you πŸ‘€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • void β€” no arguments. none. zero. nada. it takes nothing, it needs nothing. main character energy fr fr πŸ’…

✨ DESCRIPTION ✨

so here's the vibe: this is a helper for GT stats to grab the current ktime. that's its whole job and it does it slayfully. πŸ’–

and the lowkey cool part? it compiles out if GT stats are disabled. so if you're not using GT stats, this thing literally isn't even there. ghosted by the compiler. we love a function that knows when to not show up πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

returns the current ktime β€” yep, that's the whole return value. it gives you the current ktime. periodt. ⭐


πŸ‘‘ SEE ALSO πŸ‘‘

  • the kernel file ./drivers/gpu/drm/xe/xe_gt_stats.h β€” go read it, iykyk πŸ“–
  • xe_gt_stats_ktime_us_delta(9) β€” the sibling function, bestie behavior fr 🫢

πŸ’€ reminder bestie: keep every symbol, path and signature exactly as written. no renaming, no "improving", no merging. we respect the source in this house πŸŽ€

🌈 and that's the whole page!! brought to you by the good people over in ./drivers/gpu/drm/xe, dated October 2026 β€” mwah, love u, go call some ktime functions πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from