xe_lrc_put(9)
β¨ xe_lrc_put(9) β¨
okay so bestie, welcome to the Kernel API Manual (section 9, we're fancy like that) π this one's a tiny little function page and honestly? it's giving "short but crucial." let's get into it π«Ά
πΈ NAME πΈ
xe_lrc_put β the one that puts a reference of the LRC. that's it, that's the vibe π
π¦ SYNOPSIS π¦
void xe_lrc_put (struct xe_lrc *lrc );
like, that's the whole signature. no hidden extras, no sneaky surprise params. iconic of her honestly β
π ARGUMENTS π
lrcβ the Logical Ring Context. yes queen, that's the thing you're passing in π
π₯ DESCRIPTION π₯
so what does it actually do? bestie, it decrements the reference count of lrc β and when that reference count hits 0, it calls xe_lrc_destroy. no cap, that's the whole plot π
like, that's a big deal lowkey. you're letting go of your reference, and the moment nobody's holding on anymore, xe_lrc_destroy gets the call. so don't be out here acting like this is a no-op β it's the responsible-adult move of reference counting π§
ok real talk: this decrements the count and can trigger xe_lrc_destroy at 0. just be aware you're handing over that reference when you call it, bestie π
π SEE ALSO π
- the kernel file
./drivers/gpu/drm/xe/xe_lrc.h xe_lrc_get(9)β the counterpart, for when you're grabbing a reference instead of putting one πxe_lrc_ring_size(9)xe_lrc_update_timestamp(9)
go read those too, they're the supporting cast and they ate π
with love from the kernel file <code>./drivers/gpu/drm/xe</code>, dated <b>October 2026</b> β this has been <code>xe_lrc_put(9)</code>, mwah π
π¦ 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