STRUCT VMW_SIMPLE_RESOURCE_FUNC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ struct vmw_simple_resource_func(9) πŸŽ€

okay so bestie, this is straight from the Kernel API Manual πŸ’– and it’s literally all about struct vmw_simple_resource_func β€” the members and functions that are common for the simple resource helpers. no cap, it’s giving β€œshared glue code” energy in the best way ✨


🌈 SYNOPSIS 🌈

       struct vmw_simple_resource_func {
           const struct vmw_res_func res_func;
           int ttm_res_type;
           size_t size;
           int (*init)(struct vmw_resource *res, void *data);
           void (*hw_destroy)(struct vmw_resource *res);
           void (*set_arg_handle)(void *data, u32 handle);
        };

🌸 Members 🌸

  • res_func β€” a struct vmw_res_func, as described above (yes, the manpage really says β€œas described above” β€” iykyk πŸ’…).
  • ttm_res_type β€” the TTM resource type used for handle recognition. slay, handles recognized βœ…
  • size β€” the size of the simple resource information struct. iconic size-check behavior πŸŽ€
  • init β€” initializes the simple resource information. main character setup moment ✨
  • hw_destroy β€” a resource hw_destroy function. bye-bye hardware stuff πŸ‘‹
  • set_arg_handle β€” sets the handle output argument of the ioctl create struct. get that handle argument set, bestie πŸ’…

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_resource_priv.h
  • struct vmw_user_resource_conv(9)
  • struct vmw_res_func(9)
  • struct vmw_simple_resource(9)

that’s the whole vibe πŸ’– this one’s from the kernel file ./drivers/gpu/drm/vmwgfx, dated October 2026, and it’s filed under struct vmw_...esource_func(9) β€” mwah, go read the related structs, ily πŸ«ΆπŸ¦‹

πŸ“¦ where this page comes from