xe_sriov_vfi...op_copy_size(9)
π xe_sriov_vfio_stop_copy_size β Kernel API Manual, bestie β¨
Okay so picture this: you're deep in the xe driver, you're doing VF device migration, and you need to know how much stuff you're about to move. That's literally this function. The manual name is the Kernel API Manual and yes it's giving official π
πΈ NAME πΈ
xe_sriov_vfio_stop_copy_size β get a size estimate of VF device migration data π (that's the whole vibe: an estimate of the size, in bytes, of the data involved in VF device migration, no cap)
β¨ SYNOPSIS β¨
ssize_t xe_sriov_vfio_stop_copy_size (struct xe_device *xe , unsigned
int vfid );
That's it, that's the call. Copy it exactly, character for character, bestie β I'm not about to let you mistype a parameter name π«Ά
π¦ ARGUMENTS π¦
xeβ the PFxe_device, and listen, you gotta get this one by callingxe_sriov_vfio_get_pf. No sneaky shortcuts. πvfidβ the VF identifier. And here's the thing, the way that it can't be0. That's not a suggestion, that's the rule. π
π RETURN π
It hands you the migration data size in bytes π β or, if things go sideways, a negative error code on failure. So if you see a negative number, don't celebrate, that's your signal that it did not slay π
π SEE ALSO π
- The kernel file
./include/drm/intel/xe_sriov_vfio.hβ home base, go read it π xe_sriov_vfio_get_pf(9)xe_sriov_vfio_migration_supported(9)xe_sriov_vfio_flr_prepare(9)xe_sriov_vfio_wait_flr_done(9)xe_sriov_vfio_suspend_device(9)xe_sriov_vfio_resume_device(9)xe_sriov_vfio_stop_copy_enter(9)xe_sriov_vfio_stop_copy_exit(9)xe_sriov_vfio_resume_data_enter(9)xe_sriov_vfio_resume_data_exit(9)xe_sriov_vfio_error(9)xe_sriov_vfio_data_read(9)xe_sriov_vfio_data_write(9)
Like, the whole friend group, fr fr β every single one of those (9) references is in the list and we are not leaving anyone out π§
Quick vibe check:vfidcan't be0. Not "probably shouldn't." Can't. π
Sign-off time, bestie π β this lil page came out of ./include/drm/intel, dated October 2026, and it answers to the name xe_sriov_vfi...op_copy_size(9). Iconic, honestly. Periodt. π₯
π¦ 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