__xe_drm_client_free(9)
π
__xe_drm_client_free β the Kernel API Manual moment
okay bestie, so this one lives in the Kernel API Manual (yes, that's the manual name, we're fancy now π) and it's genuinely one of those tiny-but-critical cleanup functions. no cap, it's short, but it's doing real work.
β¨ NAME β¨
__xe_drm_client_free β free the client struct, periodt π§Ή
π¦ SYNOPSIS π¦
void __xe_drm_client_free (struct kref *kref );
that's it. that's the whole signature. she's small but she's main character energy π
πΈ ARGUMENTS πΈ
krefβ The reference. yes, just the reference β that's literally what the docs say, and we're not inventing lore. it's thestruct krefhanded to you, iykyk π₯
π DESCRIPTION π
so here's the vibe check: this function frees the client struct. that's the whole thing she does, and she does it slayfully.
the docs are very clear about when you should call this API: when the xe device is closed by the drm client. that's the moment. that's your cue. don't be out here calling it whenever, bestie β the trigger is the xe device getting closed by the drm client π
lowkey important: this is a free function. it's cleanup. you call it at the right moment and the client struct goes away. that's the deal, fr fr.
β RETURN β
void β she returns nothing. no value, no drama, just vibes and a freed struct π«Ά
π SEE ALSO π
- the Kernel file
./drivers/gpu/drm/xe/xe_drm_client.c - DRM Client usage stats(9)
xe_drm_client_alloc(9)xe_drm_client_add_bo(9)xe_drm_client_remove_bo(9)xe_drm_client_fdinfo(9)
literally the whole friend group of client functions β alloc, add_bo, remove_bo, fdinfo β plus the usage stats page. go read them, they're all connected, iykyk π
okay that's the page!! and for the cute sign-off you asked for: this one lives under ./drivers/gpu/drm/xe, dated October 2026, in the Kernel API Manual β so like, future energy but also very much today's problem. mwah, go free that client struct responsibly ππ πΈ
π¦ 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