mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Implement support for the kvmalloc_array() function in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
f6d4552417
commit
f1aa567bfe
1 changed files with 6 additions and 0 deletions
|
|
@ -131,6 +131,12 @@ kmalloc_array(size_t n, size_t size, gfp_t flags)
|
|||
return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags)));
|
||||
}
|
||||
|
||||
static inline void *
|
||||
kvmalloc_array(size_t n, size_t size, gfp_t flags)
|
||||
{
|
||||
return (mallocarray(n, size, M_KMALLOC, linux_check_m_flags(flags)));
|
||||
}
|
||||
|
||||
static inline void *
|
||||
krealloc(void *ptr, size_t size, gfp_t flags)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue