- NetBSD Manual Pages
KMEM_FREE(9) NetBSD Kernel Developer's Manual KMEM_FREE(9)
Powered by man-cgi (2021-06-01).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
kmem_free -- free kernel wired memory
kmem_free(void *p, size_t size);
kmem_free() frees kernel wired memory allocated by kmem_alloc() or
kmem_zalloc() so that it can be used for other purposes. It takes the
p The pointer to the memory being freed. It must be the one
returned by kmem_alloc() or kmem_zalloc().
size The size of the memory being freed, in bytes. It must be the
same as the size argument used for kmem_alloc() or kmem_zalloc()
when the memory was allocated.
Freeing NULL is illegal.
intro(9), kmem_alloc(9), kmem_zalloc(9), memoryallocators(9)
kmem_free() can not be used from interrupt context.
NetBSD 5.0 January 4, 2008 NetBSD 5.0