Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
stack_user.c File Reference
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/reboot.h>
#include <asm/uaccess.h>
#include "stackglue.h"
#include <linux/dlm_plock.h>

Go to the source code of this file.

Data Structures

struct  ocfs2_live_connection
 
struct  ocfs2_control_private
 
struct  ocfs2_control_message_setn
 
struct  ocfs2_control_message_setv
 
struct  ocfs2_control_message_down
 
union  ocfs2_control_message
 

Macros

#define OCFS2_CONTROL_PROTO   "T01\n"
 
#define OCFS2_CONTROL_PROTO_LEN   4
 
#define OCFS2_CONTROL_HANDSHAKE_INVALID   (0)
 
#define OCFS2_CONTROL_HANDSHAKE_READ   (1)
 
#define OCFS2_CONTROL_HANDSHAKE_PROTOCOL   (2)
 
#define OCFS2_CONTROL_HANDSHAKE_VALID   (3)
 
#define OCFS2_CONTROL_MESSAGE_OP_LEN   4
 
#define OCFS2_CONTROL_MESSAGE_SETNODE_OP   "SETN"
 
#define OCFS2_CONTROL_MESSAGE_SETNODE_TOTAL_LEN   14
 
#define OCFS2_CONTROL_MESSAGE_SETVERSION_OP   "SETV"
 
#define OCFS2_CONTROL_MESSAGE_SETVERSION_TOTAL_LEN   11
 
#define OCFS2_CONTROL_MESSAGE_DOWN_OP   "DOWN"
 
#define OCFS2_CONTROL_MESSAGE_DOWN_TOTAL_LEN   47
 
#define OCFS2_TEXT_UUID_LEN   32
 
#define OCFS2_CONTROL_MESSAGE_VERNUM_LEN   2
 
#define OCFS2_CONTROL_MESSAGE_NODENUM_LEN   8
 

Functions

 MODULE_AUTHOR ("Oracle")
 
 MODULE_DESCRIPTION ("ocfs2 driver for userspace cluster stacks")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ocfs2_user_plugin_init)
 
 module_exit (ocfs2_user_plugin_exit)
 

Macro Definition Documentation

#define OCFS2_CONTROL_HANDSHAKE_INVALID   (0)

Definition at line 89 of file stack_user.c.

#define OCFS2_CONTROL_HANDSHAKE_PROTOCOL   (2)

Definition at line 91 of file stack_user.c.

#define OCFS2_CONTROL_HANDSHAKE_READ   (1)

Definition at line 90 of file stack_user.c.

#define OCFS2_CONTROL_HANDSHAKE_VALID   (3)

Definition at line 92 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_DOWN_OP   "DOWN"

Definition at line 100 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_DOWN_TOTAL_LEN   47

Definition at line 101 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_NODENUM_LEN   8

Definition at line 104 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_OP_LEN   4

Definition at line 95 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_SETNODE_OP   "SETN"

Definition at line 96 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_SETNODE_TOTAL_LEN   14

Definition at line 97 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_SETVERSION_OP   "SETV"

Definition at line 98 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_SETVERSION_TOTAL_LEN   11

Definition at line 99 of file stack_user.c.

#define OCFS2_CONTROL_MESSAGE_VERNUM_LEN   2

Definition at line 103 of file stack_user.c.

#define OCFS2_CONTROL_PROTO   "T01\n"

Definition at line 85 of file stack_user.c.

#define OCFS2_CONTROL_PROTO_LEN   4

Definition at line 86 of file stack_user.c.

#define OCFS2_TEXT_UUID_LEN   32

Definition at line 102 of file stack_user.c.

Function Documentation

MODULE_AUTHOR ( "Oracle"  )
MODULE_DESCRIPTION ( "ocfs2 driver for userspace cluster stacks"  )
module_exit ( ocfs2_user_plugin_exit  )
module_init ( ocfs2_user_plugin_init  )
MODULE_LICENSE ( "GPL"  )