Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hugepage-mmap.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>

Go to the source code of this file.

Macros

#define FILE_NAME   "huge/hugepagefile"
 
#define LENGTH   (256UL*1024*1024)
 
#define PROTECTION   (PROT_READ | PROT_WRITE)
 
#define ADDR   (void *)(0x0UL)
 
#define FLAGS   (MAP_SHARED)
 

Functions

int main (void)
 

Macro Definition Documentation

#define ADDR   (void *)(0x0UL)

Definition at line 34 of file hugepage-mmap.c.

#define FILE_NAME   "huge/hugepagefile"

Definition at line 25 of file hugepage-mmap.c.

#define FLAGS   (MAP_SHARED)

Definition at line 35 of file hugepage-mmap.c.

#define LENGTH   (256UL*1024*1024)

Definition at line 26 of file hugepage-mmap.c.

#define PROTECTION   (PROT_READ | PROT_WRITE)

Definition at line 27 of file hugepage-mmap.c.

Function Documentation

int main ( void  )

Definition at line 64 of file hugepage-mmap.c.