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

Go to the source code of this file.

Data Structures

struct  semid_ds
 
struct  sembuf
 
union  semun
 
struct  seminfo
 

Macros

#define SEM_UNDO   0x1000 /* undo the operation on exit */
 
#define GETPID   11 /* get sempid */
 
#define GETVAL   12 /* get semval */
 
#define GETALL   13 /* get all semval's */
 
#define GETNCNT   14 /* get semncnt */
 
#define GETZCNT   15 /* get semzcnt */
 
#define SETVAL   16 /* set semval */
 
#define SETALL   17 /* set all semval's */
 
#define SEM_STAT   18
 
#define SEM_INFO   19
 
#define SEMMNI   128 /* <= IPCMNI max # of semaphore identifiers */
 
#define SEMMSL   250 /* <= 8 000 max num of semaphores per id */
 
#define SEMMNS   (SEMMNI*SEMMSL) /* <= INT_MAX max # of semaphores in system */
 
#define SEMOPM   32 /* <= 1 000 max num of ops per semop call */
 
#define SEMVMX   32767 /* <= 32767 semaphore maximum value */
 
#define SEMAEM   SEMVMX /* adjust on exit max value */
 
#define SEMUME   SEMOPM /* max num of undo entries per process */
 
#define SEMMNU   SEMMNS /* num of undo structures system wide */
 
#define SEMMAP   SEMMNS /* # of entries in semaphore map */
 
#define SEMUSZ   20 /* sizeof struct sem_undo */
 

Macro Definition Documentation

#define GETALL   13 /* get all semval's */

Definition at line 12 of file sem.h.

#define GETNCNT   14 /* get semncnt */

Definition at line 13 of file sem.h.

#define GETPID   11 /* get sempid */

Definition at line 10 of file sem.h.

#define GETVAL   12 /* get semval */

Definition at line 11 of file sem.h.

#define GETZCNT   15 /* get semzcnt */

Definition at line 14 of file sem.h.

#define SEM_INFO   19

Definition at line 20 of file sem.h.

#define SEM_STAT   18

Definition at line 19 of file sem.h.

#define SEM_UNDO   0x1000 /* undo the operation on exit */

Definition at line 7 of file sem.h.

#define SEMAEM   SEMVMX /* adjust on exit max value */

Definition at line 71 of file sem.h.

#define SEMMAP   SEMMNS /* # of entries in semaphore map */

Definition at line 76 of file sem.h.

#define SEMMNI   128 /* <= IPCMNI max # of semaphore identifiers */

Definition at line 66 of file sem.h.

#define SEMMNS   (SEMMNI*SEMMSL) /* <= INT_MAX max # of semaphores in system */

Definition at line 68 of file sem.h.

#define SEMMNU   SEMMNS /* num of undo structures system wide */

Definition at line 75 of file sem.h.

#define SEMMSL   250 /* <= 8 000 max num of semaphores per id */

Definition at line 67 of file sem.h.

#define SEMOPM   32 /* <= 1 000 max num of ops per semop call */

Definition at line 69 of file sem.h.

#define SEMUME   SEMOPM /* max num of undo entries per process */

Definition at line 74 of file sem.h.

#define SEMUSZ   20 /* sizeof struct sem_undo */

Definition at line 77 of file sem.h.

#define SEMVMX   32767 /* <= 32767 semaphore maximum value */

Definition at line 70 of file sem.h.

#define SETALL   17 /* set all semval's */

Definition at line 16 of file sem.h.

#define SETVAL   16 /* set semval */

Definition at line 15 of file sem.h.