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

Go to the source code of this file.

Macros

#define SHM_HUGETLB   04000
 
#define LENGTH   (256UL*1024*1024)
 
#define dprintf(x)   printf(x)
 
#define ADDR   (void *)(0x0UL)
 
#define SHMAT_FLAGS   (0)
 

Functions

int main (void)
 

Macro Definition Documentation

#define ADDR   (void *)(0x0UL)

Definition at line 50 of file hugepage-shm.c.

#define dprintf (   x)    printf(x)

Definition at line 43 of file hugepage-shm.c.

#define LENGTH   (256UL*1024*1024)

Definition at line 41 of file hugepage-shm.c.

#define SHM_HUGETLB   04000

Definition at line 38 of file hugepage-shm.c.

#define SHMAT_FLAGS   (0)

Definition at line 51 of file hugepage-shm.c.

Function Documentation

int main ( void  )

Definition at line 54 of file hugepage-shm.c.