__drm_gpusvm_unmap_pages(9)
π NAME π
okay so this is __drm_gpusvm_unmap_pages(9) from the Kernel API Manual, and it unmaps pages associated with GPU SVM pages β and yes bestie, it's internal πβ¨
π¦ SYNOPSIS π¦
void __drm_gpusvm_unmap_pages (struct drm_gpusvm *gpusvm , struct
drm_gpusvm_pages *svm_pages , unsigned long npages );
π ARGUMENTS π
gpusvmβ pointer to the GPU SVM structure, main character energy fr frsvm_pagesβ pointer to the GPU SVM pages structure, the pages bestie in question π«Άnpagesβ number of pages to unmap, literally the count π
β¨ DESCRIPTION β¨
This function unmaps pages associated with a GPU SVM pages struct. It's giving internal helper realness π
lowkey important: it assumes and asserts that correct locking is in place when it's called. no cap, the locking better be correct before you come through here π₯
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_gpusvm.c 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_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)drm_gpusvm_range_set_unmapped(9)
and that's the whole vibe check, bestie π this page is from the ./drivers/gpu/drm source/version and is dated October 2026 β slay, 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