12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

KMEM_FREE (9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> KMEM_FREE (9)<strong>NAME</strong>kmem_free —free kernel wired memorySYNOPSIS#include voidkmem_free(void ∗p , size_t size);DESCRIPTIONkmem_free() frees kernel wired memory allocated by kmem_alloc() or kmem_zalloc() so that it canbe used for other purposes. It takes the following arguments.psizeThe pointer to the memory being freed. It must be the one returned by kmem_alloc() orkmem_zalloc().The size of the memory being freed, in bytes. It must be the same as the size argument usedfor kmem_alloc() or kmem_zalloc() when the memory was allocated.Freeing NULL is illegal.SEE ALSOintro(9), kmem_alloc(9), kmem_zalloc(9), memoryallocators(9)CAVEATSkmem_free() can not be used from interrupt context.<strong>NetBSD</strong> 3.0 January 4, 2008 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!