drm_gpusvm_check_pages(9)
β¨ NAME β¨
okay so this is drm_gpusvm_check_pages(9), straight out of the Kernel API Manual, and the official NAME is literally Check pages. Thatβs the whole assignment, bestie: check pages. π
πΈ SYNOPSIS πΈ
bool drm_gpusvm_check_pages (struct drm_gpusvm *gpusvm , struct
drm_gpusvm_notifier *notifier , unsigned long start , unsigned long end
, void *dev_private_owner );
π ARGUMENTS π
gpusvmβ Pointer to the GPU SVM structure. itβs giving main-character struct pointer β¨notifierβ Pointer to the GPU SVM notifier structure. π«Άstartβ Start address. πendβ End address. πdev_private_ownerβ The device private page owner. π
π DESCRIPTION π
So what this actually does: it checks if the pages between start and end have been faulted in on the CPU. Like, βare these pages CPU-backed or not?β vibes. Use it to prevent migration of pages without CPU backing store. Thatβs the plot. No cap. π₯
π₯ RETURN π₯
True if pages have been faulted into CPU, False otherwise. Literally that simple, bestie. β
π SEE ALSO π
Also peep the kernel file ./drivers/gpu/drm/drm_gpusvm.c and the whole friend group of cross-refs: 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_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). π¦
Cute little sign-off: this one lives under ./drivers/gpu/drm, dated October 2026, and itβs drm_gpusvm_check_pages(9). Mwah ππ
π¦ 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