DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

os_alloc_pages(D3psm)


os_alloc_pages -- allocate page-aligned memory

Synopsis

   void *os_alloc_pages(ms_size_t size)

Description

os_alloc_pages allocates page-aligned physically contiguous memory for enough whole pages to contain size bytes. This call may or may not wait for more memory if it is not immediately available. Large requests are likely to fail.

os_alloc_pages may be called from pfxinitpsm or from the following entry points:

Arguments


size
the number of bytes of memory to contain

Return values

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

Usage

Hardware applicability

All.

Version applicability

psm: 2

References

MSOP_INIT_CPU(D2psm), MSOP_START_CPU(D2psm), MSOP_INTR_ATTACH(D2psm), MSOP_INTR_DETACH(D2psm), os_alloc(D3psm)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - 19 June 2005