Index Index for
Section 9r
Index Alphabetical
listing for C
Bottom of page Bottom of
page

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

addr Specifies the address of the memory being freed. This address was returned in a previous call to contig_malloc. size 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. type 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.

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, contig_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)

Index Index for
Section 9r
Index Alphabetical
listing for C
Top of page Top of
page