STRUCT DRM_VMW_GB_SURFACE_CREATE_REP(9)
π struct drm_vmw_gb_surface_create_rep(9) β Kernel API Manual
okay so bestie, welcome to the glow-up era of the vmwgfx uapi headers β¨ this one lives in the Kernel API Manual and honestly? it's giving "quiet little struct that does a lot behind the scenes" energy. let's get into it π«Ά
πΈ NAME πΈ
struct drm_vmw_gb_surface_create_rep β and that's literally it, the NAME section is out here with zero elaboration, main character silence π (the real tea is all in Members and Description, keep scrolling)
π SYNOPSIS π
struct drm_vmw_gb_surface_create_rep {
__u32 handle;
__u32 backup_size;
__u32 buffer_handle;
__u32 buffer_size;
__u64 buffer_map_handle;
};
look at her. five fields. not one wasted byte. iconic π
π¦ Members π¦
handleβ the surface handle. that's her name tag at the party πbackup_sizeβ size of the backup buffers for this surface. like, how much room the understudy gets πbuffer_handleβ handle of the backup buffer. it'sSVGA3D_INVALID_IDif there isn't one β so if you see that value, no buffer, don't go looking πbuffer_sizeβ the actual size of the buffer identified bybuffer_handle. real measurements only, no cap πbuffer_map_handleβ offset into device address space for the buffer identified bybuffer_handle. iykyk, it's the map coordinates for that buffer πΊοΈ
π Description π
so here's the vibe check π₯ this struct is part of the output argument for the DRM_VMW_GB_SURFACE_REF ioctl. and it's also the output argument for the DRM_VMW_GB_SURFACE_CREATE ioctl. versatile queen, she does both π
β SEE ALSO β
bestie the friend group is HUGE, buckle up π§ the kernel file ./include/uapi/drm/vmwgfx_drm.h, plus:
enum drm_vmw_handle_type(9)struct drm_vmw_getparam_arg(9)struct drm_vmw_size(9)union drm_vmw_surface_create_arg(9)struct drm_vmw_fence_rep(9)struct drm_vmw_bo_rep(9)union drm_vmw_alloc_bo_arg(9)struct drm_vmw_control_stream_arg(9)struct drm_vmw_cursor_bypass_arg(9)struct drm_vmw_fence_wait_arg(9)struct drm_vmw_fence_event_arg(9)struct drm_vmw_shader_create_arg(9)struct drm_vmw_gb_surface_create_req(9)union drm_vmw_gb_surface_create_arg(9)union drm_vmw_gb_surface_reference_arg(9)enum drm_vmw_synccpu_op(9)struct drm_vmw_synccpu_arg(9)union drm_vmw_extended_context_arg(9)struct drm_vmw_handle_close_arg(9)struct drm_vmw_gb_surface_create_ext_req(9)union drm_vmw_gb_surface_create_ext_arg(9)union drm_vmw_gb_surface_reference_ext_arg(9)struct drm_vmw_msg_arg(9)struct drm_vmw_mksstat_add_arg(9)struct drm_vmw_mksstat_remove_arg(9)
go read them all, i'll wait π
aaand that's the whole page, no notes π this one came from ./include/uapi/drm, dated October 2026 β so like, future era energy fr fr. stan a header file that keeps it consistent, 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