drm_gpusvm_...set_unmapped(9)
π drm_gpusvm_...set_unmapped(9)
okay bestie, welcome to the Kernel API Manual page for drm_gpusvm_...set_unmapped(9) β yes, the header title is abbreviated, but the actual NAME is drm_gpusvm_range_set_unmapped, and it is literally here to mark a GPU SVM range as unmapped. iconic behavior only.
β¨ NAME β¨
drm_gpusvm_range_set_unmapped β mark a GPU SVM range as unmapped π«
πΈ SYNOPSIS πΈ
void drm_gpusvm_range_set_unmapped (struct drm_gpusvm_range *range ,
struct drm_gpusvm_pages *pages , unsigned int pages_count , const struct
mmu_notifier_range *mmu_range );
π ARGUMENTS π
rangeβ pointer to the GPU SVM range structure. that's the main character right there π«Άpagesβ pointer to the GPU SVM pages structure(s). yes, plural possible, she contains multitudes.pages_countβ number of GPU SVM pages structure(s) passed in. count them, bestie π’mmu_rangeβ pointer to the MMU notifier range structure. the range in question π
π₯ DESCRIPTION π₯
This function marks a GPU SVM range as unmapped and sets the partial_unmap flag if the range partially falls within the provided MMU notifier range.
likeβ¦ that's the whole vibe. mark it unmapped, and if it only partially overlaps the MMU notifier range, partial_unmap gets set too. no cap. π¦
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_gpusvm.c β plus the whole linked crew, all here, all accounted for: Overview(9), Locking(9), Partial Unmapping of Ranges(9), Examples(9), npages_in_range(9), drm_gpusvm_notifier_find(9), drm_gpusvm_range_find(9), drm_gpusvm_notifier_invalidate(9), drm_gpusvm_init(9), to_drm_gpusvm_notifier(9), drm_gpusvm_notifier_insert(9), drm_gpusvm_notifier_remove(9), drm_gpusvm_fini(9), drm_gpusvm_notifier_alloc(9), drm_gpusvm_notifier_free(9), to_drm_gpusvm_range(9), drm_gpusvm_range_insert(9), __drm_gpusvm_range_remove(9), drm_gpusvm_range_alloc(9), drm_gpusvm_hmm_pfn_to_order(9), drm_gpusvm_check_pages(9), drm_gpusvm_scan_mm(9), drm_gpusvm_range_chunk_size(9), drm_gpusvm_driver_lock_held(9), drm_gpusvm_find_vma_start(9), drm_gpusvm_range_find_or_insert(9), __drm_gpusvm_unmap_pages(9), __drm_gpusvm_free_pages(9), drm_gpusvm_free_pages(9), drm_gpusvm_range_remove(9), drm_gpusvm_range_get(9), drm_gpusvm_range_destroy(9), drm_gpusvm_range_put(9), drm_gpusvm_pages_valid(9), drm_gpusvm_pages_valid_unlocked(9), drm_gpusvm_get_pages(9), drm_gpusvm_unmap_pages(9), drm_gpusvm_range_evict(9), drm_gpusvm_has_mapping(9). obsessed with the cross-referencing honestly π§
Signed off with sparkles and receipts: source/version ./drivers/gpu/drm, date October 2026, page drm_gpusvm_...set_unmapped(9). periodt. πβ¨
π¦ 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