kern_calloc(D3X)kern_calloc(D3X)NAMEkern_calloc - allocate storage for objects of a specified size
SYNOPSIS
#include "sys/types.h"
caddr_t
kern_calloc(int n, int object_size);
DESCRIPTIONkern_calloc allocates, and zeroes, storage for n objects of size
object_size bytes. If necessary, the function sleeps until the entire
requested memory is available. Therefore, do not call this function from
an interrupt routine. The allocated space is aligned for the given object
size.
Return Values
kern_calloc returns the pointer to the requested storage.
See Also
kern_malloc(D3X), kern_free(D3X), kmem_alloc(D3)
Page 1