STRUCT XE_GUC_ID_MGR(9)
π struct xe_guc_id_mgr(9)
okay bestie, welcome to the Kernel API Manual β today's main character is struct xe_guc_id_mgr, aka the GuC context ID Manager β¨ she's small, she's bookkeeping, she's iconic.
πΈ SYNOPSIS πΈ
here's the whole vibe, literally the entire struct, no cap:
struct xe_guc_id_mgr {
unsigned long *bitmap;
unsigned int total;
unsigned int used;
};
three fields. that's her. she ate and left no crumbs π
π Members π
bitmapβ abitmap(pointer tounsigned long, bestie) that tracks which IDs are allocated π it's giving "attendance sheet but make it bits".totalβ the total number of IDs being managed. the whole roster, fr fr.usedβ the number of IDs currently in use. the ones who actually showed up π
π Note π
not me reminding you again: the GuC context ID Manager is relying on xe_guc::submission_state.lock to protect its members. so likeβ¦ take the lock. she does not protect herself. periodt π₯
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_guc_types.h struct xe_guc_db_mgr(9)struct xe_guc(9)
go read those next, iykyk π¦
okay that's the whole page π«Ά it lives in ./drivers/gpu/drm/xe, it's dated October 2026, and it came to you straight from the Kernel API Manual β mwah, go forth and manage 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