drm_gpusvm_has_mapping(9)
β¨ drm_gpusvm_has_mapping(9) β¨
okay bestie, so this one lives in the Kernel API Manual and it's literally called drm_gpusvm_has_mapping β a whole little vibe check for your GPU's shared virtual memory π
π NAME π
drm_gpusvm_has_mapping β check if GPU SVM has a mapping for the given address range πΊοΈβ¨
like, does this range have a home or is it homeless? we're about to find out π«Ά
πΈ SYNOPSIS πΈ
bool drm_gpusvm_has_mapping (struct drm_gpusvm *gpusvm , unsigned long
start , unsigned long end );
yes she returns a bool, she's decisive like that π
π ARGUMENTS π
gpusvmβ pointer to the GPU SVM structure. that's your main character right there, the whole struct we're interrogating π§startβ start address πΈendβ end address πΈ
so you hand her a range, start through end, and a gpusvm to look inside, and she does her thing. no cap π₯
β RETURN β
True if GPU SVM has mapping, False otherwise π
that's it. that's the answer. binary queen behavior fr fr π
ngl this is the whole entire function β one yes-or-no, no drama, no exit codes, no signals, no errno shenanigans. just vibes and a boolean π
π¦ SEE ALSO π¦
the whole friend group showed up, and we're listing every single one because nobody gets left out π
- 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_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_range_set_unmapped(9)
go read them all, iykw00t π (ok it's iykyk, but you get it π )
ok that's the whole page bestie, nothing hidden, nothing skipped π«Ά
and that's a wrap on this one, mwah π β brought to you by the Kernel API Manual out of ./drivers/gpu/drm, dated October 2026. slay, see you in the next manpage πΈβ¨π
π¦ 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