xe_guard_arm(9)
π xe_guard_arm(9) β the guard-arming era
okay so bestie, welcome to xe_guard_arm(9), a page from the Kernel API Manual. no cap, this is the little function that decides who gets to hold the β¨guardβ¨ β keep reading, it's giving short-but-iconic.
πΈ NAME πΈ
xe_guard_arm β arm the guard for the exclusive/lockdown mode. literally that's the whole job. arm it. πͺ
β¨ SYNOPSIS β¨
int xe_guard_arm (struct xe_guard *guard , bool lockdown , void *who );
π ARGUMENTS π
guardβ thexe_guardto arm, bestie. this is the main character, the thing you're arming.lockdownβ arm for lockdown (true) or exclusive (false) mode. two moods, onebool. π¦whoβ optional owner info, and it's for debug only, so likeβ¦ it's just there for the vibes and the forensics. π
π DESCRIPTION π
okay so here's the tea π:
- Multiple lockdown requests are allowed. like, the more the merrier, no gatekeeping.
- Only a single exclusive access can be granted. one spot, one holder, periodt.
- It will fail if the guard is already in exclusive mode. already taken? not your turn. π
- On success, you must call
xe_guard_disarmto release. yes, MUST. don't just walk away holding it, that's not the vibe. π
no cap on this one: ifxe_guard_armsucceeds,xe_guard_disarmis not optional β it's how you give the guard back. π«Ά
π₯ RETURN π₯
0 on success or a negative error code on failure. slay when it's 0, check the negative when it's not. β
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_guard.hβstruct xe_guard(9) xe_guard_init(9)xe_guard_disarm(9)xe_guard_mode_str(9)
go read those next, iykyk π§
π that's the whole page, bestie β from ./drivers/gpu/drm/xe, dated October 2026, and yes the footer says xe_guard_arm(9) too, we love a consistent queen. mwah, drink water, and remember to disarm π
π¦ 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