xe_pagemap_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the struct 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:

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