xe_guc_id_mgr_reserve(9)
π xe_guc_id_mgr_reserve(9) π
okay bestie, welcome to the Kernel API Manual entry for xe_guc_id_mgr_reserve(9) β yes that's a whole mouthful, but she's iconic and we're gonna get through it together π«Ά
β¨ NAME β¨
xe_guc_id_mgr_reserve β bestie, this one reserves a range of GuC context IDs. that's the whole vibe β¨
πΈ SYNOPSIS πΈ
int xe_guc_id_mgr_reserve (struct xe_guc_id_mgr *idm , unsigned int
count , unsigned int retain );
like literally that's the signature, no notes π
π ARGUMENTS π
idmβ thexe_guc_id_mgrin question. she's the main character here πcountβ how many GuC context IDs you wanna reserve. absolutely can't be 0 β zero is not the move, ok? π«retainβ how many GuC context IDs you gotta keep available. also can't be 0, no exceptions π€
π¦ DESCRIPTION π¦
so this function is dedicated for use by the PF driver, and the PF driver has some strong opinions, ngl. it expects two things:
- the reserved range of IDs will be contiguous β no gaps, she stays together π§
- there will be at least
retainIDs still available for the PF after this reservation β like you can't just take everything, leave some for later bestie π
β RETURN β
on success you get the starting ID of the allocated GuC context ID range β slay π₯
on failure? a negative error code. so if you see a negative number, that's your sign something went off, no cap π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_guc_id_mgr.c xe_guc_id_mgr_init(9)xe_guc_id_mgr_reserve_locked(9)xe_guc_id_mgr_release_locked(9)xe_guc_id_mgr_release(9)xe_guc_id_mgr_print(9)
ngl the whole squad is linked up there, go read them too, iykyk π
and that's the page bestie!! this one came straight outta ./drivers/gpu/drm/xe, dated October 2026 β yes, the future, we're that ahead of the game πβ¨ mwah, ily, go reserve those IDs 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