drm_gpusvm_range_evict(9)
π drm_gpusvm_range_evict(9) β Kernel API Manual, bestie edition
okay so real talk, this is drm_gpusvm_range_evict, straight out of the kernel API manual, and it's lowkey one of the most straightforward little functions you'll ever meet. no cap. let's get into it π«Ά
β¨ NAME β¨
drm_gpusvm_range_evict β Evict GPU SVM range
like... that's it. that's the whole job. she evicts. she's an evictor. iconic behavior honestly π
πΈ SYNOPSIS πΈ
int drm_gpusvm_range_evict (struct drm_gpusvm *gpusvm , struct
drm_gpusvm_range *range );
look at her. two params, returns an int. clean. minimal. the way that she doesn't overcomplicate things?? we stan π
π ARGUMENTS π
gpusvmβ Pointer to the GPU SVM structure. that's the big-picture one, the main character of the whole GPU SVM situation π§rangeβ Pointer to the GPU SVM range to be removed. yes bestie, the one getting evicted. it's giving "your subscription has ended" energy π
π¦ DESCRIPTION π¦
This function evicts the specified GPU SVM range. that's the tea, that's the whole plot π she takes the range you hand her and she evicts it. no extra steps, no surprise plot twists, fr fr.
β RETURN β
0on success π slay- a negative error code on failure π not slay, but at least you know
π₯ SEE ALSO π₯
okay this is the part where I hold your hand and walk you through the whole friend group, because this function does NOT exist in a vacuum:
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_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_has_mapping(9), drm_gpusvm_range_set_unmapped(9)
like I said. whole friend group. go say hi ππ
ngl bestie, if you're poking around GPU SVM ranges, read the Overview(9) and Locking(9) entries first. no notes. π
and that's the page!! sourced from ./drivers/gpu/drm, dated October 2026 β mwah, go evict some ranges responsibly πβ¨π
π¦ 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