ENUM DRM_GPUVA_OP_TYPE(9)
π 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" oneDRM_GPUVA_OP_REMAPβ the remap op type π the "this mapping is moving, actually" oneDRM_GPUVA_OP_UNMAPβ the unmap op type π the "bye bye mapping" oneDRM_GPUVA_OP_PREFETCHβ the prefetch op type β the "get ahead of it" oneDRM_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms