Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
map_hugetlb.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 LENGTH   (256UL*1024*1024)
 
#define PROTECTION   (PROT_READ | PROT_WRITE)
 
#define MAP_HUGETLB   0x40000 /* arch specific */
 
#define ADDR   (void *)(0x0UL)
 
#define FLAGS   (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)
 

Functions

int main (void)
 

Macro Definition Documentation

#define ADDR   (void *)(0x0UL)

Definition at line 30 of file map_hugetlb.c.

#define FLAGS   (MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB)

Definition at line 31 of file map_hugetlb.c.

#define LENGTH   (256UL*1024*1024)

Definition at line 18 of file map_hugetlb.c.

#define MAP_HUGETLB   0x40000 /* arch specific */

Definition at line 22 of file map_hugetlb.c.

#define PROTECTION   (PROT_READ | PROT_WRITE)

Definition at line 19 of file map_hugetlb.c.

Function Documentation

int main ( void  )

Definition at line 60 of file map_hugetlb.c.