vmw_gb_surf...ne_ext_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

Okay so bestie, gather round: this is vmw_gb_surface_define_ext_ioctl β€” the ioctl function that implements the user surface define functionality. That's it, that's the whole flex ✨ (and yes, we're living in the Kernel API Manual, welcome to the party πŸŽ€)


✨ SYNOPSIS

int vmw_gb_surface_define_ext_ioctl (struct drm_device *dev , void *data
, struct drm_file *file_priv );

Literal main character energy: int in, three args, no cap. 🫢


πŸŽ€ ARGUMENTS

Let's do a vibe check on the three besties this function takes πŸ’–

  • dev β€” Pointer to a struct drm_device. Your whole GPU situation, basically.
  • data β€” Pointer to data copied from / to user-space. It goes both ways, lowkey iconic.
  • file_priv β€” Pointer to a drm file private structure. The private file tea β˜•

πŸ¦‹ SEE ALSO

The whole group chat, fr fr β€” no one gets left on read πŸ“–βœ¨

So first the file itself: Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_surface.c, plus struct vmw_user_surface(9), struct vmw_surface_offset(9), struct vmw_surface_dirty(9).

Then the sizing squad πŸ“: vmw_surface_dma_size(9), vmw_surface_define_size(9), vmw_surface_destroy_size(9).

Then the encoding crew 🌸: vmw_surface_destroy_encode(9), vmw_surface_define_encode(9), vmw_surface_dma_encode(9), vmw_hw_surface_destroy(9).

Then the legacy legends πŸ‘‘: vmw_legacy_srf_create(9), vmw_legacy_srf_dma(9), vmw_legacy_srf_bind(9), vmw_legacy_srf_unbind(9), vmw_legacy_srf_destroy(9).

Then the surface core πŸ’œ: vmw_surface_init(9), vmw_user_surface_base_to_res(9), vmw_user_surface_free(9), vmw_user_surface_base_release(9).

Then the ioctl icons 🌈: vmw_surface_destroy_ioctl(9), vmw_surface_define_ioctl(9), vmw_surface_reference_ioctl(9), vmw_gb_surface_create(9), vmw_gb_surface_define_ioctl(9), vmw_gb_surface_reference_ioctl(9), vmw_gb_surface_reference_ext_ioctl(9).

Then the internals, iykyk πŸ”₯: vmw_gb_surface_define_internal(9), vmw_gb_surface_reference_internal(9).

And finally the dirty/dumb duo 😭: vmw_subres_dirty_add(9), vmw_subres_dirty_full(9), vmw_dumb_create(9).


That's the whole page, bestie β€” every flag-free, option-free, argument-having detail accounted for. Nothing skipped, nothing invented, periodt πŸ’…

Signing off from ./drivers/gpu/drm/vmwgfx, dated October 2026, with the header energy of vmw_gb_surf...ne_ext_ioctl(9) β€” go be an icon and define those user surfaces πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from