STRUCT DRM_ASAHI_GEM_CREATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct drm_asahi_gem_create(9) πŸ’–

okay bestie, welcome to the struct drm_asahi_gem_create(9) page from the Kernel API Manual β€” yes we're in the kernel docs, yes it's giving group chat, no I will not be normal about it ✨


🌸 NAME 🌸

struct drm_asahi_gem_create β€” literally the arguments you pass to DRM_IOCTL_ASAHI_GEM_CREATE, that's it, that's the whole vibe 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct drm_asahi_gem_create {
    __u64 size;
    __u32 flags;
    __u32 vm_id;
    __u32 handle;
    __u32 pad;
};

πŸ¦‹ Members πŸ¦‹

  • size β€” the size of the BO, like how big your buffer object is gonna be πŸ’…
  • flags β€” a lil combination of drm_asahi_gem_flags flags, mix and match, iykyk
  • vm_id β€” the VM ID to assign to the BO, but only if DRM_ASAHI_GEM_VM_PRIVATE is set πŸ‘‘
  • handle β€” the GEM handle that gets returned for the BO, so this is the output field, not you typing it in bestie πŸ™ˆ
  • pad β€” MBZ (must be zero, so like… zero it. fr fr. zero. it.) πŸ’€

⭐ SEE ALSO ⭐

  • Kernel file ./include/uapi/drm/asahi_drm.h
  • Introduction to the Asahi UAPI(9)
  • enum drm_asahi_ioctl_id(9)
  • struct drm_asahi_params_global(9)
  • enum drm_asahi_feature(9)
  • struct drm_asahi_get_params(9)
  • struct drm_asahi_vm_create(9)
  • struct drm_asahi_vm_destroy(9)
  • enum drm_asahi_gem_flags(9)
  • struct drm_asahi_gem_mmap_offset(9)
  • enum drm_asahi_bind_flags(9)
  • struct drm_asahi_gem_bind_op(9)
  • struct drm_asahi_vm_bind(9)
  • enum drm_asahi_bind_object_op(9)
  • enum drm_asahi_bind_object_flags(9)
  • struct drm_asahi_gem_bind_object(9)
  • enum drm_asahi_cmd_type(9)
  • enum drm_asahi_priority(9)
  • struct drm_asahi_queue_create(9)
  • struct drm_asahi_queue_destroy(9)
  • enum drm_asahi_sync_type(9)
  • struct drm_asahi_sync(9)
  • DRM_ASAHI_BARRIER_NONE(9)
  • struct drm_asahi_cmd_header(9)
  • struct drm_asahi_submit(9)
  • struct drm_asahi_attachment(9)
  • struct drm_asahi_zls_buffer(9)
  • struct drm_asahi_timestamp(9)
  • struct drm_asahi_timestamps(9)
  • struct drm_asahi_helper_program(9)
  • struct drm_asahi_bg_eot(9)
  • struct drm_asahi_cmd_render(9)
  • struct drm_asahi_cmd_compute(9)
  • struct drm_asahi_get_time(9)
  • DRM_IOCTL_ASAHI(9)

bestie reminder: handle comes back to you, and pad must be zero. that's the whole plot πŸ“

and that's the page!! mwah πŸ’œ this one lives at ./include/uapi/drm, dated October 2026, and it's struct drm_asahi_gem_create(9) from the Kernel API Manual β€” slay, go create some BOs responsibly βœ¨πŸŽ€

πŸ“¦ where this page comes from