ENUM DRM_GPUSVM_SCAN_RESULT(9)
π enum drm_gpusvm_scan_result π
okay bestie, so this is a page straight out of the Kernel API Manual (yes, that's the manual name, we're fancy like that) and it's all about enum drm_gpusvm_scan_result β the β¨receiptβ¨ that drm_gpusvm_scan_mm() hands back after it goes looking through your pages. Basically it tells you what kind of pages it found, and honestly? The drama of it all. Let's get into it π«Ά
β¨ NAME β¨
enum drm_gpusvm_scan_result β the scan result you get back from the drm_gpusvm_scan_mm() function. that's it, that's the vibe check π«
πΈ SYNOPSIS πΈ
enum drm_gpusvm_scan_result {
DRM_GPUSVM_SCAN_UNPOPULATED ,
DRM_GPUSVM_SCAN_EQUAL ,
DRM_GPUSVM_SCAN_OTHER ,
DRM_GPUSVM_SCAN_SYSTEM ,
DRM_GPUSVM_SCAN_MIXED_DEVICE ,
DRM_GPUSVM_SCAN_MIXED
};
look at her. six constants, zero notes, iconic behavior π
π Constants π
bestie these are the possible outcomes, and each one is a whole personality. here we go:
DRM_GPUSVM_SCAN_UNPOPULATEDβ at least one page was not present or inaccessible. yeah. she's not home. πDRM_GPUSVM_SCAN_EQUALβ all pages belong to thestruct dev_pagemapthat you passed in as the pagemap argument to thedrm_gpusvm_scan_mmfunction. everything matches, no cap, we love a consistent queen πDRM_GPUSVM_SCAN_OTHERβ all pages belong to exactly onedev_pagemap, but it is NOT the pagemap argument to thedrm_gpusvm_scan_mm. also: all pages belong to the same device private owner. so like, they're all together, just not with you πDRM_GPUSVM_SCAN_SYSTEMβ all pages are present and they're system pages. plain, classic, system page energy πΈDRM_GPUSVM_SCAN_MIXED_DEVICEβ all pages are device pages, and they belong to at least two differentstruct dev_pagemaps. also, all pages belong to the same device private owner. multiple pagemaps but one owner β it's giving found family π₯DRM_GPUSVM_SCAN_MIXEDβ pages are present, and they're a mix of system pages and device-private pages. also: all device-private pages belong to the same device private owner. chaotic but organized, main character energy fr fr π¦
ngl bestie, "at least one page was not present or inaccessible" is the one that'll jump-scare you. DRM_GPUSVM_SCAN_UNPOPULATED means somebody didn't show up to the group chat π
π¦ SEE ALSO π¦
if you liked this page, the extended universe is right there and it's stacked:
- Kernel file
./include/drm/drm_gpusvm.h struct drm_gpusvm_ops(9)struct drm_gpusvm_notifier(9)struct drm_gpusvm_pages_flags(9)struct drm_gpusvm_pages(9)struct drm_gpusvm_range_flags(9)struct drm_gpusvm_range(9)struct drm_gpusvm(9)struct drm_gpusvm_ctx(9)drm_gpusvm_init_pages(9)drm_gpusvm_driver_set_lock(9)drm_gpusvm_notifier_lock(9)drm_gpusvm_notifier_unlock(9)drm_gpusvm_range_start(9)drm_gpusvm_range_end(9)drm_gpusvm_range_size(9)drm_gpusvm_notifier_start(9)drm_gpusvm_notifier_end(9)drm_gpusvm_notifier_size(9)__drm_gpusvm_range_next(9)drm_gpusvm_for_each_range(9)drm_gpusvm_for_each_range_safe(9)__drm_gpusvm_notifier_next(9)drm_gpusvm_for_each_notifier(9)drm_gpusvm_for_each_notifier_safe(9)
that's a whole reading list, go off π
and that's the whole page, bestie β¨ this one comes from ./include/drm, dated October 2026, and it lives in the Kernel API Manual β mwah, love that for us ππ
π¦ 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