Go to the documentation of this file.
27 #ifndef _DRM_MEM_UTIL_H_
28 #define _DRM_MEM_UTIL_H_
32 static __inline__ void *drm_calloc_large(
size_t nmemb,
size_t size)
34 if (size != 0 && nmemb >
SIZE_MAX / size)
45 static __inline__ void *drm_malloc_ab(
size_t nmemb,
size_t size)
47 if (size != 0 && nmemb >
SIZE_MAX / size)
59 if (!is_vmalloc_addr(ptr))