new_kmem_alloc(9) is a Solaris/illumos malloc(9). FreeBSD and NetBSD
never get here, however a test for SOLARIS, as redundant as this test is, serves to document that this is the illumos definition. This should help those who come after me to follow the code more easily. MFC after: 1 month
This commit is contained in:
parent
e9a5006bff
commit
4ca6f22e91
@ -590,7 +590,7 @@ MALLOC_DECLARE(M_IPFILTER);
|
||||
# define COPYOUT(a,b,c) (bcopy((caddr_t)(a), (caddr_t)(b), (c)), 0)
|
||||
# endif
|
||||
|
||||
# ifndef KMALLOC
|
||||
# if SOLARIS && !defined(KMALLOC)
|
||||
# define KMALLOC(a,b) (a) = (b)new_kmem_alloc(sizeof(*(a)), \
|
||||
KMEM_NOSLEEP)
|
||||
# define KMALLOCS(a,b,c) (a) = (b)new_kmem_alloc((c), KMEM_NOSLEEP)
|
||||
|
Loading…
x
Reference in New Issue
Block a user