drm_prime_g...tiguous_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_prime_g...tiguous_size(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual, bestie β€” yes it's a real manual, no it's not the kind you read for fun, but we're gonna make it fun anyway 🫢


✨ NAME ✨

drm_prime_get_contiguous_size β€” literally returns the contiguous size of the buffer πŸ’… that's it that's the whole vibe


🌸 SYNOPSIS 🌸

unsigned long drm_prime_get_contiguous_size (struct sg_table *sgt );

πŸŽ€ ARGUMENTS πŸŽ€

  • sgt β€” the sg_table that describes the buffer you wanna check, bestie. this is the thing that's getting inspected. it's giving "receipts" energy 🧾

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this little helper calculates the contiguous size in the DMA address space of the buffer that's described by the sg_table you handed it. no cap, that's its whole job.

and why do we care?? because this is useful for implementing drm_gem_object_funcs.gem_prime_import_sg_table, that's why πŸ’« so if you're sitting there like "when would i even need this" β€” that's when. iconic use case, honestly πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

the whole friend group, in the order the page says it, because we don't do favorites here 🫢


lowkey obsessed with how many cross-references that is. go read the links, bestie, iykyk πŸ“šβœ¨

and that's a wrap, gorgeous πŸ’– this page lives under ./drivers/gpu/drm and it's dated October 2026 β€” so if you ever need to cite it, that's the receipt 🧾 slay, bye πŸ‘‹πŸŒˆ

πŸ“¦ where this page comes from