xe_sriov_pf_disarm_guard(9)
π xe_sriov_pf_disarm_guard β bestie, it's time to DISARM the guard
okay so real talk, this is a page straight out of the Kernel API Manual (that's the manual name, bestie, we're in the kernel docs now π). The function we're stanning today is xe_sriov_pf_disarm_guard(9), and yes, it does exactly what it says on the tin: Disarm the guard. Periodt. π
β¨ SYNOPSIS β¨
void xe_sriov_pf_disarm_guard (struct xe_device *xe , struct xe_guard
*guard , bool lockdown , void *who );
like, she takes four things and returns nothing. void. no cap. π«Ά
πΈ ARGUMENTS πΈ
xeβ the PFxe_device. that's your physical function device, the main character of this whole situation πguardβ thexe_guardto disarm. yes, this guard. we're disarming it. she's done her job π«‘lockdownβ abooltelling you which mode you're disarming from:truemeans disarm from lockdown mode,falsemeans disarm from exclusive mode. choose wisely bestie πwhoβ the address of the indirect owner, orNULLif it's a caller. so like, if you're the one doing it, passNULLand own it π
π₯ DESCRIPTION π₯
okay so, first things first, and this is important:
This function can only be called on PF. only. PF only. do not come in here with a VF, it's not giving what you think it's giving π
Otherwise? She's literally just a simple wrapper for xe_guard_disarm β¨ β but with extras. The extras being additional debug messages and xe_assert, so that any illegal calls get caught easily instead of quietly ruining your whole day. it's giving protective best friend energy, fr fr π§
So like, the guard gets disarmed, you get debug messages, and if you did something illegal, xe_assert is gonna let you know. iconic behaviour honestly π
π¦ SEE ALSO π¦
- the kernel file
./drivers/gpu/drm/xe/xe_sriov_pf.cβ the whole source, if you're feeling nosy π xe_sriov_pf_readiness(9)xe_sriov_pf_init_early(9)xe_sriov_pf_init_late(9)xe_sriov_pf_wait_ready(9)xe_sriov_pf_arm_guard(9)β yes, the arming counterpart, they're a matching set πxe_sriov_pf_lockdown(9)xe_sriov_pf_end_lockdown(9)xe_sriov_pf_print_vfs_summary(9)
and that's the whole page bestie, no filler, no fluff, every single detail intact π β¨
sign-off time π: this one lives in ./drivers/gpu/drm/xe, dated October 2026, and yeah we're still calling her xe_sriov_pf_disarm_guard(9). go disarm something (legally). 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