xe_gt_sriov...ulk_set_lmem(9)
π
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β thexe_gt(can't be media). sorry media girlies, this one's not for you πvfidβ starting VF identifier (can't be0). zero is right out, fr frnum_vfsβ number of VFs to provision. yes, this is the "bulk" part β¨sizeβ requested LMEM size. it's au64, 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:
xe_gt_sriov_pf_config_get_ggtt(9)xe_gt_sriov_pf_config_set_ggtt(9)xe_gt_sriov_pf_config_bulk_set_ggtt(9)xe_gt_sriov_pf_config_set_fair_ggtt(9)xe_gt_sriov_pf_config_ggtt_save(9)xe_gt_sriov_pf_config_ggtt_restore(9)xe_gt_sriov_pf_config_get_ctxs(9)xe_gt_sriov_pf_config_set_ctxs(9)xe_gt_sriov_pf_config_bulk_set_ctxs(9)xe_gt_sriov_pf_config_set_fair_ctxs(9)xe_gt_sriov_pf_config_get_dbs(9)xe_gt_sriov_pf_config_set_dbs(9)xe_gt_sriov_pf_config_bulk_set_dbs(9)xe_gt_sriov_pf_config_set_fair_dbs(9)xe_gt_sriov_pf_config_get_lmem(9)xe_gt_sriov_pf_config_set_lmem(9)xe_gt_sriov_pf_config_bulk_set_lmem_locked(9)xe_gt_sriov_pf_config_get_lmem_locked(9)xe_gt_sriov_pf_config_set_lmem_locked(9)xe_gt_sriov_pf_config_get_lmem_obj(9)xe_gt_sriov_pf_config_set_fair_lmem(9)xe_gt_sriov_pf_config_set_fair(9)xe_gt_sriov_pf_config_set_exec_quantum_locked(9)xe_gt_sriov_pf_config_set_exec_quantum(9)xe_gt_sriov_pf_config_get_exec_quantum_locked(9)xe_gt_sriov_pf_config_get_exec_quantum(9)xe_gt_sriov_pf_config_bulk_set_exec_quantum_locked(9)xe_gt_sriov_pf_config_set_groups_exec_quantums(9)xe_gt_sriov_pf_config_get_groups_exec_quantums(9)xe_gt_sriov_pf_config_set_preempt_timeout_locked(9)xe_gt_sriov_pf_config_set_preempt_timeout(9)xe_gt_sriov_pf_config_get_preempt_timeout_locked(9)xe_gt_sriov_pf_config_get_preempt_timeout(9)xe_gt_sriov_pf_config_bulk_set_preempt_timeout_locked(9)xe_gt_sriov_pf_config_set_groups_preempt_timeouts(9)xe_gt_sriov_pf_config_get_groups_preempt_timeouts(9)xe_gt_sriov_pf_config_set_sched_priority(9)xe_gt_sriov_pf_config_get_sched_priority(9)xe_gt_sriov_pf_config_force_sched_priority_locked(9)xe_gt_sriov_pf_config_set_fair_sched(9)xe_gt_sriov_pf_config_set_threshold(9)xe_gt_sriov_pf_config_get_threshold(9)xe_gt_sriov_pf_config_release(9)xe_gt_sriov_pf_config_sanitize(9)xe_gt_sriov_pf_config_push(9)xe_gt_sriov_pf_config_is_empty(9)xe_gt_sriov_pf_config_save(9)xe_gt_sriov_pf_config_restore(9)xe_gt_sriov_pf_config_init(9)xe_gt_sriov_pf_config_restart(9)xe_gt_sriov_pf_config_print_ggtt(9)xe_gt_sriov_pf_config_print_ctxs(9)xe_gt_sriov_pf_config_print_dbs(9)xe_gt_sriov_pf_config_print_lmem(9)xe_gt_sriov_pf_config_print_available_ggtt(9)
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:vfidcan't be0andgtcan'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
- 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