kmem_free_physcontig(D3) kmem_free_physcontig(D3)
NAME
kmem_free_physcontig - free kernel memory previously allocated
with kmem_alloc_physcontig
SYNOPSIS
#include <sys/types.h>
#include <sys/kmem.h>
#include <sys/ddi.h>
void kmem_free_physcontig(void *addr, size_t size)
Arguments
addr Address of the allocated memory to be returned.
size Number of bytes to free.
DESCRIPTION
kmem_free_physcontig frees contiguous kernel memory that was
previously allocated with kmem_alloc_physcontig.
Return Values
None
USAGE
The addr argument must specify the same address that was
returned by the corresponding call to
kmem_alloc_physcontig(D3) which allocated the memory.
The size argument must specify the same number of bytes as was
allocated by the corresponding call to kmem_alloc_physcontig.
Together, the addr and size arguments must specify exactly one
complete area of memory that was allocated by a call to
kmem_alloc_physcontig (that is, the memory cannot be freed
piecemeal).
Beginning with UnixWare 2.0, drivers should use
kmem_alloc_physreq(D3) and kmem_free(D3) in preference to
kmem_alloc_physcontig(D3) and kmem_free_physcontig(D3),
respectively.
Level
Initialization, Base, or Interrupt.
Synchronization Constraints
Does not sleep.
Copyright 1994 Novell, Inc. Page 1
kmem_free_physcontig(D3) kmem_free_physcontig(D3)
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
kmem_alloc(D3), kmem_alloc_physcontig(D3),
kmem_alloc_physreq(D3), kmem_zalloc_physreq(D3), kmem_free(D3)
NOTICES
Portability
All processors
Applicability
ddi: 5, 5mp, 6, 6mp
kmem_free(D3) replaces kmem_free_physcontig.
Copyright 1994 Novell, Inc. Page 2