Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
msg.c File Reference
#include <linux/capability.h>
#include <linux/msg.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/list.h>
#include <linux/security.h>
#include <linux/sched.h>
#include <linux/syscalls.h>
#include <linux/audit.h>
#include <linux/seq_file.h>
#include <linux/rwsem.h>
#include <linux/nsproxy.h>
#include <linux/ipc_namespace.h>
#include <asm/current.h>
#include <asm/uaccess.h>
#include "util.h"

Go to the source code of this file.

Data Structures

struct  msg_receiver
 
struct  msg_sender
 

Macros

#define SEARCH_ANY   1
 
#define SEARCH_EQUAL   2
 
#define SEARCH_NOTEQUAL   3
 
#define SEARCH_LESSEQUAL   4
 
#define msg_ids(ns)   ((ns)->ids[IPC_MSG_IDS])
 
#define msg_unlock(msq)   ipc_unlock(&(msq)->q_perm)
 

Functions

void recompute_msgmni (struct ipc_namespace *ns)
 
void msg_init_ns (struct ipc_namespace *ns)
 
void __init msg_init (void)
 
 SYSCALL_DEFINE2 (msgget, key_t, key, int, msgflg)
 
 SYSCALL_DEFINE3 (msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
 
long do_msgsnd (int msqid, long mtype, void __user *mtext, size_t msgsz, int msgflg)
 
 SYSCALL_DEFINE4 (msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, int, msgflg)
 
long do_msgrcv (int msqid, long *pmtype, void __user *mtext, size_t msgsz, long msgtyp, int msgflg)
 
 SYSCALL_DEFINE5 (msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, long, msgtyp, int, msgflg)
 

Macro Definition Documentation

#define msg_ids (   ns)    ((ns)->ids[IPC_MSG_IDS])

Definition at line 70 of file msg.c.

#define msg_unlock (   msq)    ipc_unlock(&(msq)->q_perm)

Definition at line 72 of file msg.c.

#define SEARCH_ANY   1

Definition at line 65 of file msg.c.

#define SEARCH_EQUAL   2

Definition at line 66 of file msg.c.

#define SEARCH_LESSEQUAL   4

Definition at line 68 of file msg.c.

#define SEARCH_NOTEQUAL   3

Definition at line 67 of file msg.c.

Function Documentation

long do_msgrcv ( int  msqid,
long pmtype,
void __user mtext,
size_t  msgsz,
long  msgtyp,
int  msgflg 
)

Definition at line 758 of file msg.c.

long do_msgsnd ( int  msqid,
long  mtype,
void __user mtext,
size_t  msgsz,
int  msgflg 
)

Definition at line 638 of file msg.c.

void __init msg_init ( void  )

Definition at line 131 of file msg.c.

void msg_init_ns ( struct ipc_namespace ns)

Definition at line 111 of file msg.c.

void recompute_msgmni ( struct ipc_namespace ns)

Definition at line 86 of file msg.c.

SYSCALL_DEFINE2 ( msgget  ,
key_t  ,
key  ,
int  ,
msgflg   
)

Definition at line 312 of file msg.c.

SYSCALL_DEFINE3 ( msgctl  ,
int  ,
msqid  ,
int  ,
cmd  ,
struct msqid_ds __user ,
buf   
)

Definition at line 472 of file msg.c.

SYSCALL_DEFINE4 ( msgsnd  ,
int  ,
msqid  ,
struct msgbuf __user ,
msgp  ,
size_t  ,
msgsz  ,
int  ,
msgflg   
)

Definition at line 729 of file msg.c.

SYSCALL_DEFINE5 ( msgrcv  ,
int  ,
msqid  ,
struct msgbuf __user ,
msgp  ,
size_t  ,
msgsz  ,
long  ,
msgtyp  ,
int  ,
msgflg   
)

Definition at line 910 of file msg.c.