ENUM DRM_ASAHI_BIND_FLAGS(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

Okay bestie, welcome to the enum drm_asahi_bind_flags(9) page โ€” yes, that's the Kernel API Manual one, and it's giving tiny enum, big VMA energy ๐Ÿ’…โœจ

๐ŸŒธ NAME ๐ŸŒธ

enum drm_asahi_bind_flags โ€” Flags for GEM binding ๐ŸŽ€

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

enum drm_asahi_bind_flags {
    DRM_ASAHI_BIND_UNBIND ,
    DRM_ASAHI_BIND_READ ,
    DRM_ASAHI_BIND_WRITE ,
    DRM_ASAHI_BIND_SINGLE_PAGE

};

๐ŸŽ€ Constants ๐ŸŽ€

  • DRM_ASAHI_BIND_UNBIND โ€” Instead of binding a GEM object to the range, simply unbind the GPU VMA range. Literally the "nope, we're out" mode ๐Ÿ˜ญ
  • DRM_ASAHI_BIND_READ โ€” Map BO with GPU read permission ๐Ÿ‘‘
  • DRM_ASAHI_BIND_WRITE โ€” Map BO with GPU write permission ๐Ÿ”ฅ
  • DRM_ASAHI_BIND_SINGLE_PAGE โ€” Map a single page of the BO repeatedly across the VA range.

This is useful to fill a VA range with scratch pages or zero pages. It is intended as a mechanism to accelerate sparse. ๐ŸŒˆโœจ

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

Go peek at the kernel file ./include/uapi/drm/asahi_drm.h, then 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_create(9), struct drm_asahi_gem_mmap_offset(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) โ€” all the cross-refs, no cap ๐Ÿงš๐Ÿ’–


Okay that's the whole page, bestie ๐Ÿซถ This lil' corner of the manual lives in ./include/uapi/drm, it's dated October 2026, and you just read enum drm_asahi_bind_flags(9). Bye slay ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from