DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

kmem_free_physcontig(D3)


kmem_free_physcontig -- free kernel memory previously allocated with kmem_alloc_physcontig

Synopsis (Not in current DDI version)

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

void kmem_free_physcontig(void *addr, size_t size)

Description

kmem_free_physcontig frees contiguous kernel memory that was previously allocated with kmem_alloc_physcontig(D3).

Arguments


addr
Address of the allocated memory to be returned. This must specify the same address that was returned by the corresponding call to kmem_alloc_physcontig(D3) which allocated the memory.

size
Number of bytes to free. This 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( ). In other words, the memory cannot be freed piecemeal.

Return values

None

Usage

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.

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

ddi: 5, 5mp, 6, 6mp

Differences between versions

kmem_free(D3) replaces kmem_free_physcontig.

References

kmem_alloc(D3), kmem_alloc_physcontig(D3), kmem_alloc_physreq(D3), kmem_free(D3), kmem_zalloc_physreq(D3)

``DMA'' in HDK Technical Reference
``Memory allocation'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005