xe_sriov_pf_sysfs_link_vfs(9)
π xe_sriov_pf_sysfs_link_vfs(9) β the Kernel API Manual glow-up π
okay bestie, so we're in the Kernel API Manual today and this one is a function called xe_sriov_pf_sysfs_link_vfs and honestly? it's giving quiet luxury. it doesn't return anything, it doesn't take a nap, it just links stuff. let's get into it β¨
πΈ NAME πΈ
xe_sriov_pf_sysfs_link_vfs β adds the VF's links in the SR-IOV sysfs tree. literally that's the whole brand π«Ά
β¨ SYNOPSIS β¨
void xe_sriov_pf_sysfs_link_vfs(struct xe_device *xe, unsigned int num_vfs);
note: it returns void. no return value. no "did it work?" text back. it just does the thing π
π¦ ARGUMENTS π¦
xeβ thexe_devicewhere we're updating sysfs. this is the main character, the device we're doing all this for πnum_vfsβ the number of enabled VFs to link. so like, how many of them we're actually hooking up π
π DESCRIPTION π
so first things first: this function is specific for the PF driver. like, it's PF-only, that's its whole lane, no cap π
what it actually does is add symbolic links between the VFs represented in the SR-IOV sysfs tree (the one maintained by the PF) and the enabled VF PCI devices. linking the tree to the real devices, bestie. matchmaker energy fr fr πβ¨
and listen β when you wanna take those links back out, you don't just yolo it. xe_sriov_pf_sysfs_unlink_vfs shall be used to remove those links. that's the clean-up queen, respect her πΈ
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/xe/xe_sriov_pf_sysfs.cβ the source file, go read it, iykyk π¦ xe_sriov_pf_sysfs_init(9)xe_sriov_pf_sysfs_unlink_vfs(9)β the one that undoes this one, iconic pairing tbh π
π friendly reminder from your girl: every option, arg, and file path above is verbatim from the original. don't come for me, come for the manpage lmao π
and that's the page, bestie! π this little beauty lives in ./drivers/gpu/drm/xe, it's dated October 2026, and it's page xe_sriov_pf_sysfs_link_vfs(9) in the Kernel API Manual. mwah, slay, go link some VFs π
πβ¨π
π¦ 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