drm_prime_sg_to_page_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ”₯


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