contig_free(9r) contig_free(9r)
NAME
contig_free - General: Frees a block of memory previously allocated by contig_malloc
SYNOPSIS
#include <sys/malloc.h>
void contig_free(
void *addr,
u_long size,
int type );
ARGUMENTS
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/mal-
loc.h. Examples of memory type constants are M_DEVBUF (device driver memory), M_KTABLE (kernel table memory), M_RTABLE (routing tables mem-
ory), and so forth.
DESCRIPTION
The contig_free routine frees the memory allocated in a previous call to contig_malloc. If the memory came from the saved memory pool, con-
tig_free puts it back in the saved memory pool; otherwise, the interface frees the memory to the virtual memory subsystem.
RETURN VALUES
None
SEE ALSO
Routines: contig_malloc(9r)
contig_free(9r)