diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2018-05-31 13:13:08 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2018-05-31 13:13:08 +0000 |
commit | f1aa567bfe73634a685e44d7e9cbdbb87da1229f (patch) | |
tree | 56b9d435f6d262e7af5f6528ba9a1160e73ea531 | |
parent | f6d4552417d90bab8a7cd5baf8e9fa249ede5bf3 (diff) |
Notes
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/slab.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/slab.h b/sys/compat/linuxkpi/common/include/linux/slab.h index f779faeb89af..9664eebf39e4 100644 --- a/sys/compat/linuxkpi/common/include/linux/slab.h +++ b/sys/compat/linuxkpi/common/include/linux/slab.h @@ -132,6 +132,12 @@ kmalloc_array(size_t n, size_t size, gfp_t 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) { return (realloc(ptr, size, M_KMALLOC, linux_check_m_flags(flags))); |