xe_sriov_pf_lockdown(9)
π xe_sriov_pf_lockdown π
okay so this is a page from the Kernel API Manual bestie, and it's about one very specific little function that lets a PF (that's Physical Function, the main character of the SR-IOV story π) say "nope, no VFs for you" π
β¨ NAME β¨
xe_sriov_pf_lockdown β literally locks down the PF so VFs can't be enabled. That's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
int xe_sriov_pf_lockdown (struct xe_device *xe );
π¦ ARGUMENTS π¦
xeβ the PFxe_device, aka the device you're locking down. This is the one and only argument, she's low maintenance like that π«Ά
π DESCRIPTION π
okay so real talk β this function can only be called on a PF. Not a VF, not your random other device, PF only. Periodt. β
Once the PF is locked down, it will not enable VFs. Like, ever. It's giving "closed for business" energy π
But here's the thing β if VFs are already enabled when you try this, -EBUSY gets returned. π So check that first, bestie, it's not a magic wand.
And if you lock it down and then change your mind? To allow the PF to enable VFs again, just call xe_sriov_pf_end_lockdown. We love a reversible glow-up π
π₯ RETURN π₯
0on success β slay, it worked π- a negative error code on failure β not the vibe, check your code π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/xe/xe_sriov_pf.c β plus these iconic siblings (iykyk):
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)xe_sriov_pf_disarm_guard(9)xe_sriov_pf_end_lockdown(9)xe_sriov_pf_print_vfs_summary(9)
π reminder bestie: PF only. If VFs are already on, you're getting -EBUSY and that's just the rules.
and that's the whole page π this came straight out of ./drivers/gpu/drm/xe, dated October 2026, and the page itself is xe_sriov_pf_lockdown(9) β mwah, go lock down that PF πβ¨
π¦ 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