[Intel-gfx] [PATCH] drm/i915: allocate large pointer arrays with vmalloc

Keith Packard keithp at keithp.com
Sat May 9 02:18:40 CEST 2009


On Fri, 2009-05-08 at 16:07 -0700, Jesse Barnes wrote:

> Oh hey we have a nice macro for this:
> 
> 
> static __inline void drm_free_large(void *ptr)
> {
> 	if (is_vmalloc_addr(addr))
> 		return vfree(ptr);

\o/

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090508/93e417a7/attachment.sig>


More information about the Intel-gfx mailing list