xe_pagemap_create(9)
π NAME π
okay so bestie, welcome to the xe_pagemap_create(9) page in the Kernel API Manual β this one is literally about xe_pagemap_create, and its whole job is to create a struct xe_pagemap object β¨.
πΈ SYNOPSIS πΈ
struct xe_pagemap * xe_pagemap_create (struct xe_device *xe , struct xe_vram_region *vr );
π ARGUMENTS π
xeβ the xe device. main character device energy πvrβ back-pointer to thestruct xe_vram_region. it's giving "remember where u came from" π¦
β¨ DESCRIPTION β¨
so this function allocates and initializes a struct xe_pagemap β yes, both, she does it all π.
on a successful return, bestie, u should use drm_pagemap_put on the embedded struct drm_pagemap to unreference it. that's the cleanup step, don't forget it π.
π₯ RETURN π₯
if it works, u get a pointer to a struct xe_pagemap β slay β
. if it fails, u get an error pointer π. that's the whole vibe check.
π SEE ALSO π
okay the Kernel file is ./drivers/gpu/drm/xe/xe_svm.c, and there's also drm_pagemap reference-counting in xe:(9) β plus this whole friend group of references, periodt:
xe_svm_init(9)xe_svm_close(9)xe_svm_fini(9)xe_svm_range_validate(9)xe_svm_find_vma_start(9)xe_svm_range_needs_migrate_to_vram(9)xe_svm_handle_pagefault(9)xe_svm_has_mapping(9)xe_svm_unmap_address_range(9)xe_svm_bo_evict(9)xe_svm_range_find_or_insert(9)xe_svm_range_get_pages(9)xe_svm_ranges_zap_ptes_in_range(9)xe_vma_resolve_pagemap(9)xe_svm_alloc_vram(9)xe_pagemap_find_or_create(9)xe_pagemap_shrinker_create(9)xe_pagemap_cache_create(9)xe_drm_pagemap_from_fd(9)xe_svm_flush(9)
mwah π this page lives under ./drivers/gpu/drm/xe, dated October 2026, and the manual name is xe_pagemap_create(9) β bye bestie π«Ά
π¦ 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