xe_sriov_pf_...save_consume(9)
π xe_sriov_pf_...save_consume(9) π
okay bestie, so this is a page straight out of the Kernel API Manual and it's literally about eating migration data packets, no cap. sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
xe_sriov_pf_migration_save_consume β consume a VF migration data packet from the device. that's the whole job. it takes a packet off the device's hands so userspace can vibe with it π
πΈ SYNOPSIS πΈ
struct xe_sriov_packet * xe_sriov_pf_migration_save_consume (struct
xe_device *xe , unsigned int vfid );
look at that signature. iconic. it returns a pointer to a struct xe_sriov_packet, and it takes two things: your xe and your vfid. chef's kiss π
π¦ ARGUMENTS π¦
xeβ thexe_device. your main character. the device in question π₯οΈβ¨vfidβ the VF identifier. which virtual function we're talking about, bestie, don't mix them up π
π₯ DESCRIPTION π₯
so the save migration data consumer (that's userspace, hii π) calls this bad boy when it's processing migration data. it's giving "give me the next packet."
and here's the part where it's lowkey a little dramatic: if there is no migration data to process, it waits until more data is available. it does not just bounce. it sits there. patiently. like a bestie waiting outside the fitting room π
π RETURN π
what you get back, in three iconic flavours:
- a pointer to
xe_sriov_packeton success β slay β¨ NULLif the ring is empty and no more migration data is expected β that's it, that's the end, no crumbs left π- an
ERR_PTRvalue in case of error β it's giving chaos, handle it π
fr fr, check the return value.NULLis not an error here, it's the "we're done" signal.ERR_PTRis the actual problem child.
π SEE ALSO π
the kernel source file, in all its glory:
./drivers/gpu/drm/xe/xe_sriov_pf_migration.c
and the whole friend group:
xe_sriov_pf_migration_waitqueue(9)xe_sriov_pf_migration_supported(9)xe_sriov_pf_migration_disable(9)xe_sriov_pf_migration_init(9)xe_sriov_pf_migration_restore_produce(9)xe_sriov_pf_migration_read(9)xe_sriov_pf_migration_write(9)xe_sriov_pf_migration_size(9)
that's the whole page, bestie β you ate, you understood, you're basically a kernel dev now π
this one lives in ./drivers/gpu/drm/xe, it's dated October 2026, and it'll answer to xe_sriov_pf_...save_consume(9) whenever you need her. mwah! ππβ¨
π¦ 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