DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

kmem_free(D3oddi)


kmem_free -- free kernel memory

Synopsis

   #include <sys/types.h>
   #include <sys/param.h>
   #include <sys/kmem.h>
   

void kmem_free (void *addr, size_t nbytes);

Description

The kmem_free(D3oddi) function dynamically frees a memory extent that was allocated with kmem_alloc(D3oddi) or kmem_zalloc(D3oddi).

Arguments


addr
address of the start of the memory extent to be freed. It is equal to the return value from a previous call to either kmem_alloc(D3oddi) or kmem_zalloc(D3oddi).

nbytes
size in bytes of the memory extent to be freed. This must equal the size in which the memory extent was allocated.

Return values

None

Usage

Context and synchronization

All contexts

Hardware applicability

All

Version applicability

oddi: 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

SVR5 DDI compatibility

The DDI kmem_free(D3) function is identical to this function.

References

kmem_alloc(D3oddi), sptfree(D3oddi)

kmem_free(D3)

``Memory allocation'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005