xe_sriov_pf_sysfs_link_vfs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the xe_device where 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 πŸ”₯


πŸ’€ 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