xe_gt_sriov...ulk_set_lmem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_gt_sriov_pf_config_bulk_set_lmem β€” bestie's own Kernel API Manual moment ✨

okay so this is a page from the Kernel API Manual, and it's about one (1) function that does one (1) thing: handing out LMEM to a whole squad of VFs at once. no cap, it's lowkey iconic 🫢


🌸 NAME 🌸

xe_gt_sriov_pf_config_bulk_set_lmem β€” Provision many VFs with LMEM.

like, many. not one. that's the whole point, bestie πŸ’–


✨ SYNOPSIS ✨

int xe_gt_sriov_pf_config_bulk_set_lmem(struct xe_gt *gt, unsigned int vfid, unsigned int num_vfs, u64 size);

πŸŽ€ ARGUMENTS πŸŽ€

  • gt β€” the xe_gt (can't be media). sorry media girlies, this one's not for you πŸ™ˆ
  • vfid β€” starting VF identifier (can't be 0). zero is right out, fr fr
  • num_vfs β€” number of VFs to provision. yes, this is the "bulk" part ✨
  • size β€” requested LMEM size. it's a u64, it's chonky, it's giving main character energy πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

This function can only be called on PF.

that's it. that's the whole description. short king πŸ‘‘ β€” and honestly it's a hard boundary, not a suggestion, so don't try it anywhere else or the vibe check will not go your way πŸ’€


🌈 RETURN 🌈

0 on success or a negative error code on failure.

so: 0 = slay βœ…, anything negative = 😭


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives right here, bestie:

  • ./drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c

and the whole extended friend group, in order:

iykyk β€” that's a lot of cousins at this family reunion πŸ’€ but every single one is invited, no gatekeeping here πŸ’–

cute little reminder from your girl: vfid can't be 0 and gt can't be media. those are the rules, and we respect the rules πŸŽ€

and that's the page, bestie!! πŸ§šβ€β™€οΈ this one ships out of ./drivers/gpu/drm/xe and it's dated October 2026 β€” so like, future-era slay ⭐ mwah, go provision responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from