STRUCT DRM_PANTHOR_BO_MMAP_OFFSET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

ok so bestie, welcome to the Kernel API Manual ✨ this whole page is about struct drm_panthor_bo_mmap_offset β€” the little argument struct you hand over to DRM_IOCTL_PANTHOR_BO_MMAP_OFFSET. that's it. that's the vibe. πŸŽ€


✨ NAME ✨

struct drm_panthor_bo_mmap_offset β€” the arguments passed to DRM_IOCTL_PANTHOR_BO_MMAP_OFFSET, no cap 🫢


🌸 SYNOPSIS 🌸

like, literally this exact shape:

struct drm_panthor_bo_mmap_offset {
    __u32 handle;
    __u32 pad;
    __u64 offset;
 };

(yeah the closing brace has a lil space before it in the original, we're keeping it, iykyk πŸ’…)


πŸ¦‹ Members πŸ¦‹

okay so it's giving three fields, and every single one matters:

  • handle β€” the handle of the object we want an mmap offset for. it's the baddie's ID, basically πŸ’–
  • pad β€” MBZ. (that's "must be zero" β€” not me being dramatic, it's literally what it means πŸ™ˆ)
  • offset β€” the fake offset to use for all your subsequent mmap calls. fake it till you make it, main character energy only πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

the linking of it all, bestie β€” here's the whole squad, in order, no skips:

  • Kernel file ./include/uapi/drm/panthor_drm.h Introduction(9)
  • MMIO regions exposed to userspace.(9)
  • IOCTL IDs(9)
  • IOCTL arguments(9)
  • struct drm_panthor_obj_array(9)
  • DRM_PANTHOR_OBJ_ARRAY(9)
  • enum drm_panthor_sync_op_flags(9)
  • struct drm_panthor_sync_op(9)
  • enum drm_panthor_dev_query_type(9)
  • enum drm_panthor_gpu_coherency(9)
  • struct drm_panthor_gpu_info(9)
  • struct drm_panthor_csif_info(9)
  • enum drm_panthor_timestamp_info_flags(9)
  • struct drm_panthor_timestamp_info(9)
  • struct drm_panthor_mmu_info(9)
  • struct drm_panthor_group_priorities_info(9)
  • struct drm_panthor_dev_query(9)
  • struct drm_panthor_vm_create(9)
  • struct drm_panthor_vm_destroy(9)
  • enum drm_panthor_vm_bind_op_flags(9)
  • struct drm_panthor_vm_bind_op(9)
  • enum drm_panthor_vm_bind_flags(9)
  • struct drm_panthor_vm_bind(9)
  • enum drm_panthor_vm_state(9)
  • struct drm_panthor_vm_get_state(9)
  • enum drm_panthor_bo_flags(9)
  • struct drm_panthor_bo_create(9)
  • struct drm_panthor_queue_create(9)
  • enum drm_panthor_group_priority(9)
  • struct drm_panthor_group_create(9)
  • struct drm_panthor_group_destroy(9)
  • struct drm_panthor_queue_submit(9)
  • struct drm_panthor_group_submit(9)
  • enum drm_panthor_group_state_flags(9)
  • struct drm_panthor_group_get_state(9)
  • struct drm_panthor_tiler_heap_create(9)
  • struct drm_panthor_tiler_heap_destroy(9)
  • struct drm_panthor_bo_set_label(9)
  • struct drm_panthor_set_user_mmio_offset(9)
  • enum drm_panthor_bo_sync_op_type(9)
  • struct drm_panthor_bo_sync_op(9)
  • struct drm_panthor_bo_sync(9)
  • enum drm_panthor_bo_extra_flags(9)
  • struct drm_panthor_bo_query_info(9)
  • DRM_IOCTL_PANTHOR(9)

ngl there's not a single warning, bug note, exit status or env var on this page β€” it's a chill one. the only thing to remember is pad is MBZ, periodt. πŸ’€

ok bye bestie, go mmap something iconic 🌈⭐

sourced straight from ./include/uapi/drm, dated October 2026, and filed under struct drm_..._mmap_offset(9) β€” slay, you read the whole thing πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from