drm_gpusvm_...lid_unlocked(9)
π drm_gpusvm_pages_valid_unlocked(9) β from the Kernel API Manual, bestie β¨
okay so you're in the Kernel API Manual (drm_gpusvm_...lid_unlocked(9)) and this is the page you want, and honestly? it's a short one, we love that for us.
πΈ NAME πΈ
drm_gpusvm_pages_valid_unlocked β literally just "GPU SVM pages valid unlocked", no cap, that's the whole name π«Ά
β¨ SYNOPSIS β¨
bool drm_gpusvm_pages_valid_unlocked (struct drm_gpusvm *gpusvm , struct
drm_gpusvm_pages *svm_pages );
she returns a bool, she takes two struct pointers, she's iconic π
π ARGUMENTS π
gpusvmβ Pointer to the GPU SVM structure. yes girl, the main character struct πsvm_pagesβ Pointer to the GPU SVM pages structure. this one too π¦
π₯ DESCRIPTION π₯
so this function determines if a GPU SVM pages are valid β vibe check on the pages, basically β¨
and here's the part you cannot skip: it's expected be called without holding gpusvm->notifier_lock π¨ like, that's the whole point of the _unlocked in the name, bestie, do not come in here holding that lock, i'm literally begging π
β RETURN β
- True if GPU SVM pages are valid π
- False otherwise π
that's it. that's the return. binary queen π
π§ SEE ALSO π§
the kernel file itself, ./drivers/gpu/drm/drm_gpusvm.c, plus the entire extended friend group of sibling pages, all of them, in order, no one left behind π«Ά:
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_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 page babes π this one lives in ./drivers/gpu/drm, dated October 2026, and yes the footer still says drm_gpusvm_...lid_unlocked(9) β she's consistent, we stan a consistent queen πβ¨
π¦ 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