xe_sriov_vf_ccs_attach_bo(9)
β¨ xe_sriov_vf_ccs_attach_bo β¨
okay bestie, welcome to the Kernel API Manual π this is the page for xe_sriov_vf_ccs_attach_bo and honestly it's giving "small function, big job" energy. let's get into it π
πΈ NAME πΈ
xe_sriov_vf_ccs_attach_bo β puts the CCS read/write commands into the BO. that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
int xe_sriov_vf_ccs_attach_bo (struct xe_bo *bo , struct ttm_resource
*new_mem );
like, two args, one int return, no cap π
π¦ ARGUMENTS π¦
boβ the buffer object that's gonna get the batch buffer commands added to it. that's the main character here πnew_memβ the destination resource thatbois currently being moved into β and bestie, important detail: it is not yet committed at this point πbo->ttm.resourceis still pointing at the old resource while this is happening, so don't get it twisted π
π DESCRIPTION π
so here's the tea β this function shall be called only by VF β like, that's a hard requirement, not a suggestion, periodt π₯
what it actually does: it inserts the PTEs and the copy command instructions into the BO, and it does that by calling the xe_migrate_ccs_rw_copy function. that's it, that's the move π«
fr fr, VF only. don't be out here calling it from anywhere else π ββοΈ
π RETURN π
0if it worked β slay β- a negative error code on failure β not slay, but at least it tells you π
π SEE ALSO π
- the kernel file
./drivers/gpu/drm/xe/xe_sriov_vf_ccs.cπ - VF save/restore of compression Meta Data(9)
xe_sriov_vf_ccs_rebase(9)xe_sriov_vf_ccs_register_context(9)xe_sriov_vf_ccs_init(9)xe_sriov_vf_ccs_detach_bo(9)β the other half of this whole situation πxe_sriov_vf_ccs_print(9)
aaaand that's the page, bestie π§π this whole thing lives over in ./drivers/gpu/drm/xe, it's dated October 2026, and the page itself is xe_sriov_vf_ccs_attach_bo(9). go forth and attach those BOs 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