×
Namespaces

Variants
Actions

How to get system page size

From Nokia Developer 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 07:16.
30 page views in the last 30 days.
×