Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
msgutil.c File Reference
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/security.h>
#include <linux/slab.h>
#include <linux/ipc.h>
#include <linux/msg.h>
#include <linux/ipc_namespace.h>
#include <linux/utsname.h>
#include <asm/uaccess.h>
#include "util.h"

Go to the source code of this file.

Data Structures

struct  msg_msgseg


#define DATALEN_MSG   (PAGE_SIZE-sizeof(struct msg_msg))
#define DATALEN_SEG   (PAGE_SIZE-sizeof(struct msg_msgseg))


struct msg_msgload_msg (const void __user *src, int len)
int store_msg (void __user *dest, struct msg_msg *msg, int len)
void free_msg (struct msg_msg *msg)


struct ipc_namespace init_ipc_ns
atomic_t nr_ipc_ns = ATOMIC_INIT(1)

Macro Definition Documentation

#define DATALEN_MSG   (PAGE_SIZE-sizeof(struct msg_msg))

Definition at line 42 of file msgutil.c.

#define DATALEN_SEG   (PAGE_SIZE-sizeof(struct msg_msgseg))

Definition at line 43 of file msgutil.c.

Function Documentation

DEFINE_SPINLOCK ( mq_lock  )
void free_msg ( struct msg_msg msg)

Definition at line 131 of file msgutil.c.

struct msg_msg* load_msg ( const void __user src,
int  len 

Definition at line 45 of file msgutil.c.

int store_msg ( void __user dest,
struct msg_msg msg,
int  len 

Definition at line 104 of file msgutil.c.

Variable Documentation

struct ipc_namespace init_ipc_ns
Initial value:
= {
.count = ATOMIC_INIT(1),
.user_ns = &init_user_ns,

Definition at line 30 of file msgutil.c.

atomic_t nr_ipc_ns = ATOMIC_INIT(1)

Definition at line 35 of file msgutil.c.