drm_prime_sg_to_page_array(9)
π NAME π
okay bestie, welcome to the drm_prime_sg_to_page_array(9) page in the Kernel API Manual β¨ buckle up, we're being technical and cute about it.
drm_prime_sg_to_page_array β convert an sg table into a page array.
π¦ SYNOPSIS π¦
int drm_prime_sg_to_page_array (struct sg_table *sgt , struct page
**pages , int max_entries );
π ARGUMENTS π
sgtβ scatter-gather table to convert. yes, the sg table in question πpagesβ array of page pointers to store the pages in.max_entriesβ size of the passed-in array.
πΈ DESCRIPTION πΈ
Exports an sg table into an array of pages. cute concept, but read the next bit, fr fr.
β οΈ Deprecated alert, bestie: this function is deprecated and strongly discouraged to be used. not a drill π
The page array is only useful for page faults, and those can corrupt fields in the struct page if they are not handled by the exporting driver. so likeβ¦ the vibes are risky, handle with care π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_prime.coverview and lifetime rules(9) drm_gem_dmabuf_export(9)drm_gem_dmabuf_release(9)drm_gem_prime_fd_to_handle(9)drm_gem_prime_handle_to_dmabuf(9)drm_gem_prime_handle_to_fd(9)PRIME Helpers(9)drm_gem_map_attach(9)drm_gem_map_detach(9)drm_gem_map_dma_buf(9)drm_gem_unmap_dma_buf(9)drm_gem_dmabuf_vmap(9)drm_gem_dmabuf_vunmap(9)drm_gem_prime_mmap(9)drm_gem_dmabuf_mmap(9)drm_prime_pages_to_sg(9)drm_prime_get_contiguous_size(9)drm_gem_prime_export(9)drm_gem_is_prime_exported_dma_buf(9)drm_gem_prime_import_dev(9)drm_gem_prime_import(9)drm_prime_sg_to_dma_addr_array(9)drm_prime_gem_destroy(9)
peace out from drm_prime_sg_to_page_array(9) π«Ά β source ./drivers/gpu/drm, dated October 2026, in the Kernel API Manual π
β¨
π¦ 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