STRUCT DRM_ASAHI_GEM_MMAP_OFFSET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_asahi_gem_mmap_offset(9) πŸ’…

okay bestie, quick vibe check first β€” we're in the Kernel API Manual today, and this little struct is literally the argument pack you hand over to DRM_IOCTL_ASAHI_GEM_MMAP_OFFSET. that's the whole personality. slay.


✨ NAME ✨

struct drm_asahi_gem_mmap_offset β€” the args you pass to DRM_IOCTL_ASAHI_GEM_MMAP_OFFSET. that's it, that's the post 🫢


🌸 SYNOPSIS 🌸

struct drm_asahi_gem_mmap_offset {
    __u32 handle;
    __u32 flags;
    __u64 offset;
 };

look at her. three fields. iconic. no notes πŸ’œ


πŸŽ€ Members πŸŽ€

so like, field by field, here's the tea:

  • handle β€” the handle for the object being mapped. that's your ticket to the thing you wanna map, girl ✨
  • flags β€” Must be zero. no cap, zero. don't get creative with it πŸ’€
  • offset β€” the fake offset to use for subsequent mmap call. yes, fake β€” it's a little pretend offset you grab now so your real mmap later knows what's up πŸ¦‹

🌈 SEE ALSO 🌈

the whole friend group, fr fr πŸ‘‘

  • 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_create(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)

like, read them all, iykyk πŸ“š


ngl the only caveat here is flags β€” Must be zero. that's not a suggestion, bestie, that's the whole rule. respect it πŸ™ˆ

and that's the page!! this cutie came out of ./include/uapi/drm back in October 2026 β€” go drink some water and go map a buffer, you absolute main character πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from