mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Implement vmalloc_32() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
0791730913
commit
0a475c59a9
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue