Implement vmalloc_32() in the LinuxKPI.

Obtained from:		kmacy @
MFC after:		1 week
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-03-27 17:18:04 +00:00
parent 0791730913
commit 0a475c59a9

View File

@ -34,6 +34,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/limits.h>
#include <vm/uma.h>
#include <linux/types.h>
@ -105,6 +106,12 @@ __vmalloc(size_t size, gfp_t flags, int other)
return (malloc(size, M_KMALLOC, linux_check_m_flags(flags)));
}
static inline void *
vmalloc_32(size_t size)
{
return (contigmalloc(size, M_KMALLOC, M_WAITOK, 0, UINT_MAX, 1, 1));
}
static inline void *
kmalloc_array(size_t n, size_t size, gfp_t flags)
{