Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
shm.h File Reference
#include <linux/ipc.h>
#include <linux/errno.h>
#include <unistd.h>
#include <asm/shmbuf.h>

Go to the source code of this file.

Data Structures

struct  shmid_ds
 
struct  shminfo
 
struct  shm_info
 

Macros

#define SHMMAX   0x2000000 /* max shared seg size (bytes) */
 
#define SHMMIN   1 /* min shared seg size (bytes) */
 
#define SHMMNI   4096 /* max num of segs system wide */
 
#define SHMALL   (SHMMAX/getpagesize()*(SHMMNI/16))
 
#define SHMSEG   SHMMNI /* max shared segs per process */
 
#define SHM_R   0400 /* or S_IRUGO from <linux/stat.h> */
 
#define SHM_W   0200 /* or S_IWUGO from <linux/stat.h> */
 
#define SHM_RDONLY   010000 /* read-only access */
 
#define SHM_RND   020000 /* round attach address to SHMLBA boundary */
 
#define SHM_REMAP   040000 /* take-over region on attach */
 
#define SHM_EXEC   0100000 /* execution access */
 
#define SHM_LOCK   11
 
#define SHM_UNLOCK   12
 
#define SHM_STAT   13
 
#define SHM_INFO   14
 

Macro Definition Documentation

#define SHM_EXEC   0100000 /* execution access */

Definition at line 50 of file shm.h.

#define SHM_INFO   14

Definition at line 58 of file shm.h.

#define SHM_LOCK   11

Definition at line 53 of file shm.h.

#define SHM_R   0400 /* or S_IRUGO from <linux/stat.h> */

Definition at line 43 of file shm.h.

#define SHM_RDONLY   010000 /* read-only access */

Definition at line 47 of file shm.h.

#define SHM_REMAP   040000 /* take-over region on attach */

Definition at line 49 of file shm.h.

#define SHM_RND   020000 /* round attach address to SHMLBA boundary */

Definition at line 48 of file shm.h.

#define SHM_STAT   13

Definition at line 57 of file shm.h.

#define SHM_UNLOCK   12

Definition at line 54 of file shm.h.

#define SHM_W   0200 /* or S_IWUGO from <linux/stat.h> */

Definition at line 44 of file shm.h.

#define SHMALL   (SHMMAX/getpagesize()*(SHMMNI/16))

Definition at line 19 of file shm.h.

#define SHMMAX   0x2000000 /* max shared seg size (bytes) */

Definition at line 15 of file shm.h.

#define SHMMIN   1 /* min shared seg size (bytes) */

Definition at line 16 of file shm.h.

#define SHMMNI   4096 /* max num of segs system wide */

Definition at line 17 of file shm.h.

#define SHMSEG   SHMMNI /* max shared segs per process */

Definition at line 21 of file shm.h.