ENUM DRM_GPUVA_OP_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum drm_gpuva_op_type(9) β€” GPU VA operation type

okay bestie, this is the kernel API manual page for enum drm_gpuva_op_type, and it's literally the little enum that tells you what kind of GPU VA operation you're looking at. no cap, it's short but it's iconic πŸŽ€


✨ SYNOPSIS ✨

enum drm_gpuva_op_type {
    DRM_GPUVA_OP_MAP ,
    DRM_GPUVA_OP_REMAP ,
    DRM_GPUVA_OP_UNMAP ,
    DRM_GPUVA_OP_PREFETCH ,
    DRM_GPUVA_OP_DRIVER

};

like, that's the whole vibe. five constants, zero drama πŸ¦‹


🌸 Constants 🌸

  • DRM_GPUVA_OP_MAP β€” the map op type</p> πŸ’– the "we're putting a mapping here" one
  • DRM_GPUVA_OP_REMAP β€” the remap op type πŸ” the "this mapping is moving, actually" one
  • DRM_GPUVA_OP_UNMAP β€” the unmap op type πŸ’€ the "bye bye mapping" one
  • DRM_GPUVA_OP_PREFETCH β€” the prefetch op type ⭐ the "get ahead of it" one
  • DRM_GPUVA_OP_DRIVER β€” the driver defined op type πŸ‘‘ the "the driver's got this one, let them cook" one

πŸ¦‹ Description πŸ¦‹

these are the operations used to alter the GPU VA mappings that the drm_gpuvm is out here tracking. that's the whole personality of this enum β€” it's the menu of moves you can make on those mappings, periodt ✨


🌈 SEE ALSO 🌈

the whole friend group, no one left out 🫢 β€” and heads up, this lives in the kernel file ./include/drm/drm_gpuvm.h:

enum drm_gpuva_flags(9), struct drm_gpuva(9), drm_gpuva_invalidate(9), drm_gpuva_invalidated(9), enum drm_gpuvm_flags(9), struct drm_gpuvm(9), drm_gpuvm_get(9), drm_gpuvm_resv_protected(9), drm_gpuvm_immediate_mode(9), drm_gpuvm_resv(9), drm_gpuvm_resv_obj(9), drm_gpuvm_is_extobj(9), drm_gpuvm_for_each_va_range(9), drm_gpuvm_for_each_va_range_safe(9), drm_gpuvm_for_each_va(9), drm_gpuvm_for_each_va_safe(9), struct drm_gpuvm_exec(9), drm_gpuvm_exec_unlock(9), drm_gpuvm_exec_resv_add_fence(9), drm_gpuvm_exec_validate(9), struct drm_gpuvm_bo(9), drm_gpuvm_bo_get(9), drm_gpuvm_bo_gem_evict(9), drm_gpuvm_bo_for_each_va(9), drm_gpuvm_bo_for_each_va_safe(9), struct drm_gpuva_op_map(9), struct drm_gpuva_op_unmap(9), struct drm_gpuva_op_remap(9), struct drm_gpuva_op_prefetch(9), struct drm_gpuva_op(9), struct drm_gpuva_ops(9), drm_gpuva_for_each_op(9), drm_gpuva_for_each_op_safe(9), drm_gpuva_for_each_op_from_reverse(9), drm_gpuva_for_each_op_reverse(9), drm_gpuva_first_op(9), drm_gpuva_last_op(9), drm_gpuva_prev_op(9), drm_gpuva_next_op(9), struct drm_gpuvm_map_req(9), struct drm_gpuvm_ops(9), drm_gpuva_op_remap_to_unmap_range(9)


ngl, this page is short but she ate πŸ’… skim the constants, pick your op, go alter some mappings.

k bye bestie!! this lil page came from the ./include/drm corner of the kernel and it's dated October 2026 β€” that's the whole enum drm_gpuva_op_type(9) manual done and dusted πŸŽ€πŸ’–πŸŒΈ

πŸ“¦ where this page comes from