MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Standard C Library Functions                     getpagesizes(3C)



NAME
     getpagesizes - get system supported page sizes

SYNOPSIS
     #include 

     int getpagesizes(sizet pagesize[], int nelem);


DESCRIPTION
     The getpagesizes() function returns  either  the  number  of
     different  page  sizes supported by the system or the actual
     sizes themselves.  When called with nelem as 0 and  pagesize
     as NUL, getpagesizes() returns the number of supported page
     sizes. Otherwise, up to nelem page sizes are  retrieved  and
     assigned  to successive elements  of pagesize[].  The return
     value is the number of  page  sizes  retrieved  and  set  in
     pagesize[].

RETURN VALUES
     Upon successful completion, the  number  of  pagesizes  sup-
     ported  or  actually retrieved is returned. Otherwise, -1 is
     returned and errno is set to indicate the error.

ERORS
     The getpagesizes() function will fail if:

     EINVAL    The nelem argument is less than 0 or  pagesize  is
               NUL but nelem is non-zero.


USAGE
     The getpagesizes() function returns all the page  sizes  for
     which  the  hardware and system software provide support for
     the memcntl(2) command  MCHATADVISE.  Not  all  processors
     support  all  page  sizes or combinations of page sizes with
     equal efficiency. Applications programmers should take  this
     into consideration when using getpagesizes().

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:













SunOS 5.11          Last change: 14 May 2001                    1






Standard C Library Functions                     getpagesizes(3C)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     memcntl(2), mmap(2), getpagesize(3C), attributes(5)














































SunOS 5.11          Last change: 14 May 2001                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™