xe_lrc_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xe_lrc_get(9) πŸ’–

okay bestie, so this one lives in the Kernel API Manual and it's genuinely one of the shortest little icons in the whole drm/xe family β€” a tiny refcount bump that carries the entire GPU ring context on its shoulders. no cap. let's get into it 🫢


✨ NAME ✨

xe_lrc_get β€” get a reference to the LRC πŸ‘‘

like, you're grabbing a ref. that's the whole thing. that's the vibe.


🌸 SYNOPSIS 🌸

struct xe_lrc * xe_lrc_get (struct xe_lrc *lrc );

she takes a pointer and she gives a pointer back. main character behaviour honestly ⭐


πŸŽ€ ARGUMENTS πŸŽ€

  • lrc β€” the Logical Ring Context πŸ’… (yes it's capitalized in the original, yes it's that serious)

that's it. one argument. one queen. one ring context.


πŸ¦‹ DESCRIPTION πŸ¦‹

increments the reference count of lrc ✨

that's literally it bestie β€” it bumps the refcount up by one so the LRC doesn't get yanked out from under you while you're still holding onto it. it's giving protective best friend energy fr fr. no cap. πŸ₯Ί

this is a "get" β€” the matching "put" is where the refcount comes back down, and it's right there in SEE ALSO if you need it πŸ‘€

πŸ’œ SEE ALSO πŸ’œ

  • the kernel file ./drivers/gpu/drm/xe/xe_lrc.h β€” go read it, it's giving header-file realness πŸ“–
  • xe_lrc_put(9) β€” the other half of the refcount story, the breakup arc πŸ’”
  • xe_lrc_ring_size(9) β€” how big the ring is, the measurements are in 🌈
  • xe_lrc_update_timestamp(9) β€” timestamps, because time is fake but refcounts are real 😭

and that's the whole page bestie!!! go forth and refcount responsibly βœ¨πŸ‘‘πŸ’…

source: ./drivers/gpu/drm/xe β€” dated October 2026, mwah πŸ’‹

πŸ“¦ where this page comes from