ENUM DRM_GPUSVM_SCAN_RESULT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the struct dev_pagemap that you passed in as the pagemap argument to the drm_gpusvm_scan_mm function. everything matches, no cap, we love a consistent queen πŸ’–
  • DRM_GPUSVM_SCAN_OTHER β€” all pages belong to exactly one dev_pagemap, but it is NOT the pagemap argument to the drm_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 different struct 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:

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