contig_free - General: Frees a block of memory previously
allocated by contig_malloc
#include <sys/malloc.h>
void contig_free(
void *addr,
u_long size,
int type );
Specifies the address of the memory being freed. This
address was returned in a previous call to contig_malloc.
Specifies the size (in bytes) of the memory being freed.
You should pass the same value used to allocate this memory
in the call to contig_malloc. Specifies the purpose
for which the memory is being allocated (or freed). The
memory type constants are defined in the file
/usr/sys/include/sys/malloc.h. Examples of memory type
constants are M_DEVBUF (device driver memory), M_KTABLE
(kernel table memory), M_RTABLE (routing tables memory),
and so forth.
The contig_free routine frees the memory allocated in a
previous call to contig_malloc. If the memory came from
the saved memory pool, contig_free puts it back in the
saved memory pool; otherwise, the interface frees the memory
to the virtual memory subsystem.
None
Routines: contig_malloc(9r)
contig_free(9r)
[ Back ] |