xe_sriov_pf_num_vfs(9)
π xe_sriov_pf_num_vfs(9) π
okay so this is a page from the Kernel API Manual, and it's literally the tiniest little function and I'm obsessed with it. it's giving "small but mighty" energy fr fr π¦
β¨ NAME β¨
xe_sriov_pf_num_vfs β bestie, it tells you the Number of enabled VFs on the PF. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
unsigned int xe_sriov_pf_num_vfs (const struct xe_device *xe );
like, look at her. unsigned int in, const struct xe_device * out (well, in, technically, but you get me). iconic signature, no notes. π
π«Ά ARGUMENTS π«Ά
xeβ the PFxe_device. that's the one and only thing you hand her. she takes your PF, she does her thing. no cap. π
β RETURN β
she gives you back the Number of enabled VFs on the PF. that's the whole tea. not the total, not the maybe, not the someday β the enabled ones. slay. π₯
ngl if you were expecting more spice, this function is a one-liner in spirit and I respect that about her. main character energy without the drama. π
π¦ SEE ALSO π¦
- the kernel file
./drivers/gpu/drm/xe/xe_sriov_pf_helpers.hβ go read her, that's where the family lives π§ xe_sriov_pf_assert_vfid(9)xe_sriov_pf_get_totalvfs(9)β the total girlie, different from the enabled girlie, don't mix them up bestie πxe_sriov_pf_admin_only(9)
π the cute sign-off π
this absolute gem lives over in ./drivers/gpu/drm/xe, and this edition is dated October 2026 β yes, the future, she's ahead of her time β the page you're reading? xe_sriov_pf_num_vfs(9), obviously. periodt. ππβ¨
π¦ 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