STRUCT DRM_V3D_MMAP_BO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_v3d_mmap_bo(9) β€” like, the whole vibe

okay so bestie, welcome to the Kernel API Manual page for struct drm_v3d_mmap_bo ✨ this is the ioctl argument for mapping V3D BOs, and honestly? it's giving "small struct, big responsibility" πŸŽ€


🌸 NAME 🌸

struct drm_v3d_mmap_bo β€” the ioctl argument for mapping V3D BOs. periodt. that's the whole job πŸ’–


✨ SYNOPSIS ✨

here's the exact shape of it, no notes, no cap:

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

look at those three little fields living their best life 🫢


πŸ¦‹ Members πŸ¦‹

ngl the original page doesn't spell out each member here β€” it just drops the heading and moves on, so that's exactly what we're doing too. no invented lore, iykyk πŸ’€

πŸ’œ Description πŸ’œ

okay this is the part where it gets iconic β€” because this doesn't actually perform an mmap. i know. plot twist. 😭

what it does do: it returns the offset you need to use in an mmap on the DRM device node. that's it, that's the whole flex πŸ‘‘

and why do we care? because that means tools like valgrind end up knowing about the mapped memory. literally so helpful of it πŸ§šπŸ’«

as for flags β€” there are currently no values for the flags argument, but it may be used in a future extension. so it's just sitting there, cute, waiting for its moment 🌈


πŸ”₯ SEE ALSO πŸ”₯

go read these next, bestie, they're all in the kernel file ./include/uapi/drm/v3d_drm.h and they all ate:

  • struct drm_v3d_multi_sync(9)
  • struct drm_v3d_submit_cl(9)
  • struct drm_v3d_wait_bo(9)
  • struct drm_v3d_create_bo(9)
  • struct drm_v3d_indirect_csd(9)
  • struct drm_v3d_timestamp_query(9)
  • struct drm_v3d_reset_timestamp_query(9)
  • struct drm_v3d_copy_timestamp_query(9)
  • struct drm_v3d_reset_performance_query(9)
  • struct drm_v3d_copy_performance_query(9)
  • struct drm_v3d_perfmon_get_counter(9)
  • struct drm_v3d_perfmon_set_global(9)

so many structs, so little time πŸ’…βœ¨


alright babes, that's the page 🌸 this lil gem lives under ./include/uapi/drm and it's dated October 2026 β€” mwah, sending you off with a kiss and the header struct drm_v3d_mmap_bo(9) so you always remember where you came from πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from