vmw_cotable_scrub(9)
π vmw_cotable_scrub β a Kernel API Manual moment β¨
okay so bestie, welcome to the section 9 glow-up of vmw_cotable_scrub, brought to you by the Kernel API Manual π
this one's lowkey niche (it's giving "you either know vmwgfx or you don't, iykyk") but she's iconic and we're gonna get into it π
β¨ NAME β¨
vmw_cotable_scrub β scrub the cotable from the device π§ no cap, that's literally the whole job.
π¦ SYNOPSIS π¦
int vmw_cotable_scrub (struct vmw_resource *res , bool readback );
πΈ ARGUMENTS πΈ
resβ pointer to the cotable resource, bestie. that's the main character here πreadbackβ aboolthat decides whether to initiate a readback of the cotable data into the backup buffer. like, do we want a lil copy for later or not π
β DESCRIPTION β
so in some situations β context swapouts, specifically β it might be desirable to make the device forget about the cotable without doing a full unbind. and the reason is honestly so valid: a full unbind requires reserved backup buffers, and it might not be possible to reserve them because of locking order violation issues π messy.
so vmw_cotable_scrub implements a partial unbind that doesn't need that requirement β but it comes with the following restrictions, and no, you can't skip them, periodt:
- Before the cotable is again used by the GPU,
vmw_cotable_unscrubmust be called. like, non-negotiable β - Before the cotable backing buffer is used by the CPU, or during the resource destruction,
vmw_cotable_unbindmust be called. also non-negotiable π
bestie these aren't suggestions, they're the whole vibe check. skip them and that's on you π«Ά
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c struct vmw_cotable(9)struct vmw_cotable_info(9)vmw_cotable(9)vmw_cotable_destroy(9)vmw_cotable_unscrub(9)vmw_cotable_bind(9)vmw_cotable_unbind(9)vmw_cotable_readback(9)vmw_cotable_resize(9)vmw_cotable_create(9)vmw_hw_cotable_destroy(9)vmw_cotable_free(9)vmw_cotable_alloc(9)vmw_cotable_notify(9)vmw_cotable_add_resource(9)
and that's the page, bestie π this lil icon lives in ./drivers/gpu/drm/vmwgfx, dated October 2026, and she ate. 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