Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mqueue.c File Reference
#include <linux/capability.h>
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/file.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/sysctl.h>
#include <linux/poll.h>
#include <linux/mqueue.h>
#include <linux/msg.h>
#include <linux/skbuff.h>
#include <linux/vmalloc.h>
#include <linux/netlink.h>
#include <linux/syscalls.h>
#include <linux/audit.h>
#include <linux/signal.h>
#include <linux/mutex.h>
#include <linux/nsproxy.h>
#include <linux/pid.h>
#include <linux/ipc_namespace.h>
#include <linux/user_namespace.h>
#include <linux/slab.h>
#include <net/sock.h>
#include "util.h"

Go to the source code of this file.

Data Structures

struct  posix_msg_tree_node
 
struct  ext_wait_queue
 
struct  mqueue_inode_info
 

Macros

#define MQUEUE_MAGIC   0x19800202
 
#define DIRENT_SIZE   20
 
#define FILENT_SIZE   80
 
#define SEND   0
 
#define RECV   1
 
#define STATE_NONE   0
 
#define STATE_PENDING   1
 
#define STATE_READY   2
 

Functions

 SYSCALL_DEFINE4 (mq_open, const char __user *, u_name, int, oflag, umode_t, mode, struct mq_attr __user *, u_attr)
 
 SYSCALL_DEFINE1 (mq_unlink, const char __user *, u_name)
 
 SYSCALL_DEFINE5 (mq_timedsend, mqd_t, mqdes, const char __user *, u_msg_ptr, size_t, msg_len, unsigned int, msg_prio, const struct timespec __user *, u_abs_timeout)
 
 SYSCALL_DEFINE5 (mq_timedreceive, mqd_t, mqdes, char __user *, u_msg_ptr, size_t, msg_len, unsigned int __user *, u_msg_prio, const struct timespec __user *, u_abs_timeout)
 
 SYSCALL_DEFINE2 (mq_notify, mqd_t, mqdes, const struct sigevent __user *, u_notification)
 
 SYSCALL_DEFINE3 (mq_getsetattr, mqd_t, mqdes, const struct mq_attr __user *, u_mqstat, struct mq_attr __user *, u_omqstat)
 
int mq_init_ns (struct ipc_namespace *ns)
 
void mq_clear_sbinfo (struct ipc_namespace *ns)
 
void mq_put_mnt (struct ipc_namespace *ns)
 
 __initcall (init_mqueue_fs)
 

Macro Definition Documentation

#define DIRENT_SIZE   20

Definition at line 43 of file mqueue.c.

#define FILENT_SIZE   80

Definition at line 44 of file mqueue.c.

#define MQUEUE_MAGIC   0x19800202

Definition at line 42 of file mqueue.c.

#define RECV   1

Definition at line 47 of file mqueue.c.

#define SEND   0

Definition at line 46 of file mqueue.c.

#define STATE_NONE   0

Definition at line 49 of file mqueue.c.

#define STATE_PENDING   1

Definition at line 50 of file mqueue.c.

#define STATE_READY   2

Definition at line 51 of file mqueue.c.

Function Documentation

__initcall ( init_mqueue_fs  )
void mq_clear_sbinfo ( struct ipc_namespace ns)

Definition at line 1406 of file mqueue.c.

int mq_init_ns ( struct ipc_namespace ns)

Definition at line 1388 of file mqueue.c.

void mq_put_mnt ( struct ipc_namespace ns)

Definition at line 1411 of file mqueue.c.

SYSCALL_DEFINE1 ( mq_unlink  ,
const char __user ,
u_name   
)

Definition at line 849 of file mqueue.c.

SYSCALL_DEFINE2 ( mq_notify  ,
mqd_t  ,
mqdes  ,
const struct sigevent __user ,
u_notification   
)

Definition at line 1171 of file mqueue.c.

SYSCALL_DEFINE3 ( mq_getsetattr  ,
mqd_t  ,
mqdes  ,
const struct mq_attr __user ,
u_mqstat  ,
struct mq_attr __user ,
u_omqstat   
)

Definition at line 1303 of file mqueue.c.

SYSCALL_DEFINE4 ( mq_open  ,
const char __user ,
u_name  ,
int  ,
oflag  ,
umode_t  ,
mode  ,
struct mq_attr __user ,
u_attr   
)

Definition at line 770 of file mqueue.c.

SYSCALL_DEFINE5 ( mq_timedsend  ,
mqd_t  ,
mqdes  ,
const char __user ,
u_msg_ptr  ,
size_t  ,
msg_len  ,
unsigned  int,
msg_prio  ,
const struct timespec __user ,
u_abs_timeout   
)

Definition at line 943 of file mqueue.c.

SYSCALL_DEFINE5 ( mq_timedreceive  ,
mqd_t  ,
mqdes  ,
char __user ,
u_msg_ptr  ,
size_t  ,
msg_len  ,
unsigned int __user ,
u_msg_prio  ,
const struct timespec __user ,
u_abs_timeout   
)

Definition at line 1063 of file mqueue.c.