Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ kmem_free(9F) — SunOS 5.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

freerbuf(9F)

getrbuf(9F)

kmem_alloc(9F)

kmem_zalloc(9F)

kmem_free(9F)

NAME

kmem_free − free previously allocated kernel memory

SYNOPSIS

#include <sys/types.h>
#include <sys/kmem.h>
void kmem_free(void ∗cp, size_t size);

ARGUMENTS

cp Address of the allocated storage from which to return size of allocated memory. 

size Number of bytes to free (same number of bytes as allocated by kmem_alloc(9F) or kmem_zalloc(9F). 

INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI). 

DESCRIPTION

kmem_free() returns size bytes of storage to kernel free space previously allocated by kmem_alloc(9F) or kmem_zalloc(9F).  The cp and size values must specify exactly one complete area of allocated memory.  One kmem_free() call must correspond to one allocation.

CONTEXT

kmem_free() can be called from user or interrupt context.

SEE ALSO

freerbuf(9F), getrbuf(9F), kmem_alloc(9F), kmem_zalloc(9F)

Sun Microsystems  —  Last change: 11 Apr 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026