xe_sriov_pf_disarm_guard(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 PF xe_device. that's your physical function device, the main character of this whole situation πŸ‘‘
  • guard β€” the xe_guard to disarm. yes, this guard. we're disarming it. she's done her job 🫑
  • lockdown β€” a bool telling you which mode you're disarming from: true means disarm from lockdown mode, false means disarm from exclusive mode. choose wisely bestie 😭
  • who β€” the address of the indirect owner, or NULL if it's a caller. so like, if you're the one doing it, pass NULL and 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 πŸ¦‹


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