xe_gt_sriov...ig_ggtt_save(9)
β¨ xe_gt_sriov_pf_config_ggtt_save π (Kernel API Manual energy)
okay so bestie, welcome to the Kernel API Manual glow-up of xe_gt_sriov_pf_config_ggtt_save(9) β the function that literally saves a VF's provisioned GGTT data into a buffer. she's giving "archivist but make it SR-IOV" π
πΈ NAME πΈ
xe_gt_sriov_pf_config_ggtt_save β save a VF provisioned GGTT data into a buffer. that's it, that's the whole vibe π«Ά
β SYNOPSIS β
ssize_t xe_gt_sriov_pf_config_ggtt_save (struct xe_gt *gt , unsigned int
vfid , void *buf , size_t size );
no cap, that's the exact signature. copy it character for character or the compiler will simply end you π
π¦ ARGUMENTS π¦
gtβ thexe_gt. your graphics tile main character. she's the whole context, periodt.vfidβ the VF identifier. and listen β it can't be 0 π like, zero is not invited to this party.bufβ the GGTT data destination buffer. lowkey the cool part: passNULLto just query the buf size instead of writing anything πsizeβ the size of the buffer. or0if you're in query mode and just wanna know how big it needs to be π
π DESCRIPTION π
ngl this function is exclusive. it can only be called on PF β that's the Physical Function, the one holding the aux power in this whole SR-IOV situationship β¨ so if you're a VF trying to call this, bestie, respectfully, no π
π₯ RETURN π₯
here's the vibe check on return values:
- if you're querying, you get back the size of the buffer needed to save GGTT data β the lil "here's how much room you need" answer π
- on a successful save, it's
0(slay, no drama) - on failure, a negative error code comes through β that's the π part, handle her
π SEE ALSO π
the kernel file herself lives at ./drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c π and honestly the whole friend group is here, in this exact order, no skips:
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_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_bulk_set_lmem(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 the entire roster π
mwah, that's a wrap π§ source dir is ./drivers/gpu/drm/xe and this iconic little page is dated October 2026 β stan the kernel docs, they ate π
β¨
π¦ 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