drm_gpusvm_range_insert(9)
β¨ drm_gpusvm_range_insert(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a lil function page about putting a GPU SVM range where it belongs. short page, big slay.
πΈ NAME πΈ
drm_gpusvm_range_insert β Insert GPU SVM range π
π SYNOPSIS π
void drm_gpusvm_range_insert (struct drm_gpusvm_notifier *notifier ,
struct drm_gpusvm_range *range );
no return value, she just does the thing and leaves. iconic behaviour honestly π
π¦ ARGUMENTS π¦
notifierβ Pointer to the GPU SVM notifier structure. this is the main character of the operation, the tree-and-list-owning queen π«Άrangeβ Pointer to the GPU SVM range structure. the lil guy getting inserted β¨
π DESCRIPTION π
bestie, it's literally this simple: this function inserts the GPU SVM range into the notifier RB tree and list. both. not one, not the other β both. the range gets filed away in the RB tree π³ and also shows up on the list π, and that's the whole vibe. no cap, that's it, that's the function π
π SEE ALSO π
okay this list is long long, so buckle up β here's the whole squad, all of ./drivers/gpu/drm/drm_gpusvm.c and friends:
Kernel file ./drivers/gpu/drm/drm_gpusvm.cOverview(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_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)drm_gpusvm_range_set_unmapped(9)
like I said. a lot. but they're all worth a read, iykyk ππ
and that's the page bestie!! π big mwah to ./drivers/gpu/drm for hosting her, and this lil queen is dated October 2026 β go forth and insert those ranges, fr fr ππ¦
π¦ 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