drm_pagemap_devmem_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

Welcome to drm_pagemap_devmem_init(9) β€” yes, that's the title, and this lil page lives in the Kernel API Manual. πŸ’…

drm_pagemap_devmem_init β€” Initialize a drm_pagemap device memory allocation. That's the whole name, no cap. πŸ’–


✨ SYNOPSIS ✨

okay so the signature is literally this, bestie β€” copy it exactly, no autocorrect:

void drm_pagemap_devmem_init (struct drm_pagemap_devmem
       *devmem_allocation , struct device *dev , struct mm_struct *mm , const
       struct drm_pagemap_devmem_ops *ops , struct drm_pagemap *dpagemap ,
       size_t size , struct dma_fence *pre_migrate_fence );

πŸŽ€ ARGUMENTS πŸŽ€

Every arg matters, so let's do a lil vibe check on each one:

  • devmem_allocation β€” The struct drm_pagemap_devmem to initialize. πŸ’–
  • dev β€” Pointer to the device structure which device memory allocation belongs to.
  • mm β€” Pointer to the mm_struct for the address space.
  • ops β€” Pointer to the operations structure for GPU SVM device memory.
  • dpagemap β€” The struct drm_pagemap we're allocating from.
  • size β€” Size of device memory allocation.
  • pre_migrate_fence β€” Fence to wait for or pipeline behind before migration starts. (May be NULL).

πŸ¦‹ SEE ALSO πŸ¦‹

the whole linked-list friend group:


okay bye bestie β€” source/version: ./drivers/gpu/drm, date: October 2026. πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from