xe_lrc_update_timestamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xe_lrc_update_timestamp(9) ✨

okay so this is a page from the Kernel API Manual and bestie, it's short but it matters πŸ’…


🌸 NAME 🌸

xe_lrc_update_timestamp β€” readout LRC timestamp and update cached value

like, it reads the timestamp, and it updates the cache. that's the whole vibe check πŸŽ€


⭐ SYNOPSIS ⭐

u64 xe_lrc_update_timestamp (struct xe_lrc *lrc , u64 *old_ts );

returns a u64, takes two args. no cap, that's it πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • lrc β€” the logical ring context for this exec queue πŸ‘‘ this is the main character of the whole operation
  • old_ts β€” a pointer where you save the previous timestamp 🫢 so you can do math on it later, iykyk

🌈 DESCRIPTION 🌈

So what it does: it reads the current timestamp for this LRC, and then it updates the cached value. the way that this is literally a two-for-one deal πŸ’€βœ¨

The previous cached value also gets returned in old_ts, so the caller can calculate the delta between 2 updates. that's the whole point β€” you get the before and the after, and you do your little subtraction πŸ“

⚠️ important caveat bestie: this is not intended to be called from any place, but just by the paths updating the drm client utilization. so like, don't just call it wherever, okay? it's giving "special occasion only" πŸ™ˆ

And it returns the current LRC timestamp ⭐ β€” that's the return value, that's the good stuff, that's the whole point.


🧚 SEE ALSO 🧚

Kernel file ./drivers/gpu/drm/xe/xe_lrc.h and also these icons:

go read those too, they're literally so good πŸ’œ


okay that's the whole page, mwah πŸ’‹ this came to you from ./drivers/gpu/drm/xe, dated October 2026 β€” slay, see you next patch cycle, bestie πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from