DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

os_physmap(D3psm)


os_physmap -- allocate a virtual address mapping

Synopsis

   void *os_physmap(ms_gmemaddr_t physaddr, ms_size_t nbytes)

Description

os_physmap allocates a virtual address mapping for the range of physical addresses specified by physaddr. On systems with memory caches, access through this mapping will bypass the cache.

This function returns NULL on failure.

Addresses can freed using os_physmap_free(D3psm).

Arguments


physaddr
the physical address of the memory to be mapped

nbytes
the number of bytes of memory to be mapped

Return values

Returns a void * pointer to the mapped area. If memory mapping failed, then NULL is returned.

Usage

Hardware applicability

All.

Version applicability

psm: 2

References

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