xe_lrc_update_timestamp(9)
β¨ 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 operationold_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
- 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