xe_svm_range_get_pages(9)
β¨ NAME β¨
okay so this is xe_svm_range_get_pages(9) from the Kernel API Manual, and it's literally the βget pages for a SVM rangeβ girlie. no cap. π
πΈ SYNOPSIS πΈ
here's the signature, bestie β copy it exactly, don't freestyle:
int xe_svm_range_get_pages (struct xe_vm *vm , struct xe_svm_range
*range , struct drm_gpusvm_ctx *ctx );
π ARGUMENTS π
vmβ pointer to thestruct xe_vm.rangeβ pointer to the xe SVM range structure.ctxβ GPU SVM context.
π¦ DESCRIPTION π¦
Okay so this function gets pages for a SVM range and ensures they are mapped for DMA access. That's the whole mission, bestie. β¨
In case of failure with -EOPNOTSUPP, it evicts the range. the plot twist is real π
β RETURN β
0on success π«Ά- negative error code on failure π
π₯ SEE ALSO π₯
Also on the guest list: the kernel file ./drivers/gpu/drm/xe/xe_svm.c, drm_pagemap reference-counting in xe:(9), and these icons:
xe_svm_init(9)xe_svm_close(9)xe_svm_fini(9)xe_svm_range_validate(9)xe_svm_find_vma_start(9)xe_svm_range_needs_migrate_to_vram(9)xe_svm_handle_pagefault(9)xe_svm_has_mapping(9)xe_svm_unmap_address_range(9)xe_svm_bo_evict(9)xe_svm_range_find_or_insert(9)xe_svm_ranges_zap_ptes_in_range(9)xe_vma_resolve_pagemap(9)xe_svm_alloc_vram(9)xe_pagemap_create(9)xe_pagemap_find_or_create(9)xe_pagemap_shrinker_create(9)xe_pagemap_cache_create(9)xe_drm_pagemap_from_fd(9)xe_svm_flush(9)
mwah β this page is from ./drivers/gpu/drm/xe, October 2026. stay slay, bestie π
π¦ 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