STRUCT DRM_VMW_GB_SURFACE_CREATE_REP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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's SVGA3D_INVALID_ID if 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 by buffer_handle. real measurements only, no cap πŸ“
  • buffer_map_handle β€” offset into device address space for the buffer identified by buffer_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