xe_sriov_pf_arm_guard(9)
π xe_sriov_pf_arm_guard(9) β from the Kernel API Manual, bestie
okay so picture this: it's a Kernel API Manual page, the vibe is immaculate, and the main character is literally xe_sriov_pf_arm_guard. let's get into it π
β¨ NAME β¨
xe_sriov_pf_arm_guard β arm the guard for exclusive/lockdown mode. that's it, that's the whole job. she locks things down, she arms the guard, she slays π
π¦ SYNOPSIS π¦
int xe_sriov_pf_arm_guard (struct xe_device *xe , struct xe_guard *guard
, bool lockdown , void *who );
yes bestie, four arguments, one int back, no cap. copy it exactly like that, don't be cute with the spacing π
πΈ ARGUMENTS πΈ
xeβ the PFxe_device. like, the whole device. the main character energy of the parameter list.guardβ thexe_guardthat's about to get armed. she's the one getting the glow-up β¨lockdownβ aboolthat picks the mode:truemeans arm for lockdown mode,falsemeans arm for exclusive mode. two modes, one flag, iconic honestly.whoβ the address of the new owner π«Ά β¦orNULLif it's just the caller. your call, iykyk.
π DESCRIPTION π
first things first, the rule: this function can only be called on PF. not VF, not anybody else. PF only. periodt. π
other than that? she's a simple wrapper for xe_guard_arm, with some extra debug messages on top so you can actually see what's happening. lowkey the best kind of function β does the thing, then tells you about it π₯
β RETURN β
0 on success π, or a negative error code on failure π. that's the whole story.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/xe/xe_sriov_pf.c 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_disarm_guard(9)xe_sriov_pf_lockdown(9)xe_sriov_pf_end_lockdown(9)xe_sriov_pf_print_vfs_summary(9)
go read them all, they're all baddies, this is the group chat π«Ά
ngl if you're arming a guard, you better be on PF. that's the whole vibe check. π
and that's a wrap, babe π§ β this page lives in ./drivers/gpu/drm/xe, dated October 2026, and it's titled xe_sriov_pf_arm_guard(9). 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