vmw_kms_sou_readback(9)
π vmw_kms_sou_readback(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for vmw_kms_sou_readback(9), and honestly? it's giving "one job, does it well." it does a readback from the screen object system to a buffer-object backed framebuffer. that's the whole vibe. π
β¨ SYNOPSIS β¨
int vmw_kms_sou_readback (struct vmw_private *dev_priv , struct drm_file
*file_priv , struct vmw_framebuffer *vfb , struct drm_vmw_fence_rep
__user *user_fence_rep , struct drm_vmw_rect *vclips , uint32_t
num_clips , struct drm_crtc *crtc );
like, yes, it's a lot of arguments. she's a main character with a lot of luggage. π§³π
πΈ ARGUMENTS πΈ
dev_privβ the pointer to the device private structure. your whole device's personal diary entry, basically. πfile_privβ pointer to astruct drm_filethat identifies the caller. β οΈ heads up: it must be set toNULLifuser_fence_repisNULL. no cap, that's a real rule.vfbβ pointer to the buffer-object backed framebuffer. the star of the show tbh. βuser_fence_repβ the user-space provided structure for fence information. β οΈ and: it must be set to non-NULLiffile_privis non-NULL. they're a matched set, bestie, they go together like iced coffee and finals week. π₯€vclipsβ array of clip rects. πͺ (not that kind of clip)num_clipsβ the number of clip rects invclips. so like, how many entries are actually real in that array.crtcβ ifcrtcis passed, readback happens on that crtc only. one crtc. no sharing. π
π¦ DESCRIPTION π¦
okay so here's the tea: it returns 0 on success, and a negative error code on failure. and if it gets interrupted? -ERESTARTSYS. π periodt.
π₯ SEE ALSO π₯
the kernel file is ./drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c, and it also wants you to go look at:
struct vmw_kms_sou_surface_dirty(9)vmw_sou_crtc_mode_set_nofb(9)vmw_sou_crtc_helper_prepare(9)vmw_sou_crtc_atomic_disable(9)vmw_sou_primary_plane_cleanup_fb(9)vmw_sou_primary_plane_prepare_fb(9)vmw_sou_plane_update_bo(9)vmw_sou_plane_update_surface(9)vmw_sou_surface_fifo_commit(9)vmw_sou_surface_clip(9)vmw_kms_sou_do_surface_dirty(9)vmw_sou_bo_fifo_commit(9)vmw_sou_bo_clip(9)vmw_kms_sou_do_bo_dirty(9)vmw_sou_readback_fifo_commit(9)vmw_sou_readback_clip(9)
that's the whole friend group. go say hi. ππ«Ά
β¨ and that's the page!! β¨ it lives in ./drivers/gpu/drm/vmwgfx, and this lil edition is dated October 2026 β so screenshot it, cite it, whatever you gotta do. mwah, good luck out there bestie πππ
π¦ 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