Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to get system page size

From Wiki
Jump to: navigation, search
Article Metadata
Article
Created: polaka_sr (16 Jun 2008)
Last edited: hamishwillee (27 Jul 2012)


The getpagesize function returns the number of bytes in a page. Page granularity is the granularity of many of the memory management calls. The page size is a system page size and may not be the same as the underlying hardware page size.

#include<unistd.h>
#include<stdio.h>
int test_getpagesize()
{
int retVal = 0;
retVal = getpagesize();
if( retVal >= 0)
{
printf("getpagesize passed");
printf("\n retVal = %d " retVal);
return retVal;
}
else
{
printf("Failed");
return -1;
}
}

Library: libc.lib

This page was last modified on 27 July 2012, at 04:16.
23 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×