Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
stackglue.c File Reference
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/kmod.h>
#include <linux/fs.h>
#include <linux/kobject.h>
#include <linux/sysfs.h>
#include <linux/sysctl.h>
#include "ocfs2_fs.h"
#include "stackglue.h"

Go to the source code of this file.

Macros

#define OCFS2_STACK_PLUGIN_O2CB   "o2cb"
 
#define OCFS2_STACK_PLUGIN_USER   "user"
 
#define OCFS2_MAX_HB_CTL_PATH   256
 
#define FS_OCFS2_NM   1
 

Functions

int ocfs2_stack_glue_register (struct ocfs2_stack_plugin *plugin)
 
 EXPORT_SYMBOL_GPL (ocfs2_stack_glue_register)
 
void ocfs2_stack_glue_unregister (struct ocfs2_stack_plugin *plugin)
 
 EXPORT_SYMBOL_GPL (ocfs2_stack_glue_unregister)
 
void ocfs2_stack_glue_set_max_proto_version (struct ocfs2_protocol_version *max_proto)
 
 EXPORT_SYMBOL_GPL (ocfs2_stack_glue_set_max_proto_version)
 
int ocfs2_dlm_lock (struct ocfs2_cluster_connection *conn, int mode, struct ocfs2_dlm_lksb *lksb, u32 flags, void *name, unsigned int namelen)
 
 EXPORT_SYMBOL_GPL (ocfs2_dlm_lock)
 
int ocfs2_dlm_unlock (struct ocfs2_cluster_connection *conn, struct ocfs2_dlm_lksb *lksb, u32 flags)
 
 EXPORT_SYMBOL_GPL (ocfs2_dlm_unlock)
 
int ocfs2_dlm_lock_status (struct ocfs2_dlm_lksb *lksb)
 
 EXPORT_SYMBOL_GPL (ocfs2_dlm_lock_status)
 
int ocfs2_dlm_lvb_valid (struct ocfs2_dlm_lksb *lksb)
 
 EXPORT_SYMBOL_GPL (ocfs2_dlm_lvb_valid)
 
voidocfs2_dlm_lvb (struct ocfs2_dlm_lksb *lksb)
 
 EXPORT_SYMBOL_GPL (ocfs2_dlm_lvb)
 
void ocfs2_dlm_dump_lksb (struct ocfs2_dlm_lksb *lksb)
 
 EXPORT_SYMBOL_GPL (ocfs2_dlm_dump_lksb)
 
int ocfs2_stack_supports_plocks (void)
 
 EXPORT_SYMBOL_GPL (ocfs2_stack_supports_plocks)
 
int ocfs2_plock (struct ocfs2_cluster_connection *conn, u64 ino, struct file *file, int cmd, struct file_lock *fl)
 
 EXPORT_SYMBOL_GPL (ocfs2_plock)
 
int ocfs2_cluster_connect (const char *stack_name, const char *group, int grouplen, struct ocfs2_locking_protocol *lproto, void(*recovery_handler)(int node_num, void *recovery_data), void *recovery_data, struct ocfs2_cluster_connection **conn)
 
 EXPORT_SYMBOL_GPL (ocfs2_cluster_connect)
 
int ocfs2_cluster_connect_agnostic (const char *group, int grouplen, struct ocfs2_locking_protocol *lproto, void(*recovery_handler)(int node_num, void *recovery_data), void *recovery_data, struct ocfs2_cluster_connection **conn)
 
 EXPORT_SYMBOL_GPL (ocfs2_cluster_connect_agnostic)
 
int ocfs2_cluster_disconnect (struct ocfs2_cluster_connection *conn, int hangup_pending)
 
 EXPORT_SYMBOL_GPL (ocfs2_cluster_disconnect)
 
void ocfs2_cluster_hangup (const char *group, int grouplen)
 
 EXPORT_SYMBOL_GPL (ocfs2_cluster_hangup)
 
int ocfs2_cluster_this_node (unsigned int *node)
 
 EXPORT_SYMBOL_GPL (ocfs2_cluster_this_node)
 
 MODULE_AUTHOR ("Oracle")
 
 MODULE_DESCRIPTION ("ocfs2 cluter stack glue layer")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ocfs2_stack_glue_init)
 
 module_exit (ocfs2_stack_glue_exit)
 

Macro Definition Documentation

#define FS_OCFS2_NM   1

Definition at line 644 of file stackglue.c.

#define OCFS2_MAX_HB_CTL_PATH   256

Definition at line 37 of file stackglue.c.

#define OCFS2_STACK_PLUGIN_O2CB   "o2cb"

Definition at line 35 of file stackglue.c.

#define OCFS2_STACK_PLUGIN_USER   "user"

Definition at line 36 of file stackglue.c.

Function Documentation

EXPORT_SYMBOL_GPL ( ocfs2_stack_glue_register  )
EXPORT_SYMBOL_GPL ( ocfs2_stack_glue_unregister  )
EXPORT_SYMBOL_GPL ( ocfs2_stack_glue_set_max_proto_version  )
EXPORT_SYMBOL_GPL ( ocfs2_dlm_lock  )
EXPORT_SYMBOL_GPL ( ocfs2_dlm_unlock  )
EXPORT_SYMBOL_GPL ( ocfs2_dlm_lock_status  )
EXPORT_SYMBOL_GPL ( ocfs2_dlm_lvb_valid  )
EXPORT_SYMBOL_GPL ( ocfs2_dlm_lvb  )
EXPORT_SYMBOL_GPL ( ocfs2_dlm_dump_lksb  )
EXPORT_SYMBOL_GPL ( ocfs2_stack_supports_plocks  )
EXPORT_SYMBOL_GPL ( ocfs2_plock  )
EXPORT_SYMBOL_GPL ( ocfs2_cluster_connect  )
EXPORT_SYMBOL_GPL ( ocfs2_cluster_connect_agnostic  )
EXPORT_SYMBOL_GPL ( ocfs2_cluster_disconnect  )
EXPORT_SYMBOL_GPL ( ocfs2_cluster_hangup  )
EXPORT_SYMBOL_GPL ( ocfs2_cluster_this_node  )
MODULE_AUTHOR ( "Oracle"  )
MODULE_DESCRIPTION ( "ocfs2 cluter stack glue layer"  )
module_exit ( ocfs2_stack_glue_exit  )
module_init ( ocfs2_stack_glue_init  )
MODULE_LICENSE ( "GPL"  )
int ocfs2_cluster_connect ( const char stack_name,
const char group,
int  grouplen,
struct ocfs2_locking_protocol lproto,
void(*)(int node_num, void *recovery_data)  recovery_handler,
void recovery_data,
struct ocfs2_cluster_connection **  conn 
)

Definition at line 311 of file stackglue.c.

int ocfs2_cluster_connect_agnostic ( const char group,
int  grouplen,
struct ocfs2_locking_protocol lproto,
void(*)(int node_num, void *recovery_data)  recovery_handler,
void recovery_data,
struct ocfs2_cluster_connection **  conn 
)

Definition at line 377 of file stackglue.c.

int ocfs2_cluster_disconnect ( struct ocfs2_cluster_connection conn,
int  hangup_pending 
)

Definition at line 395 of file stackglue.c.

void ocfs2_cluster_hangup ( const char group,
int  grouplen 
)

Definition at line 451 of file stackglue.c.

int ocfs2_cluster_this_node ( unsigned int node)

Definition at line 463 of file stackglue.c.

void ocfs2_dlm_dump_lksb ( struct ocfs2_dlm_lksb lksb)

Definition at line 285 of file stackglue.c.

int ocfs2_dlm_lock ( struct ocfs2_cluster_connection conn,
int  mode,
struct ocfs2_dlm_lksb lksb,
u32  flags,
void name,
unsigned int  namelen 
)

Definition at line 241 of file stackglue.c.

int ocfs2_dlm_lock_status ( struct ocfs2_dlm_lksb lksb)

Definition at line 267 of file stackglue.c.

void* ocfs2_dlm_lvb ( struct ocfs2_dlm_lksb lksb)

Definition at line 279 of file stackglue.c.

int ocfs2_dlm_lvb_valid ( struct ocfs2_dlm_lksb lksb)

Definition at line 273 of file stackglue.c.

int ocfs2_dlm_unlock ( struct ocfs2_cluster_connection conn,
struct ocfs2_dlm_lksb lksb,
u32  flags 
)

Definition at line 257 of file stackglue.c.

int ocfs2_plock ( struct ocfs2_cluster_connection conn,
u64  ino,
struct file file,
int  cmd,
struct file_lock fl 
)

Definition at line 301 of file stackglue.c.

int ocfs2_stack_glue_register ( struct ocfs2_stack_plugin plugin)

Definition at line 172 of file stackglue.c.

void ocfs2_stack_glue_set_max_proto_version ( struct ocfs2_protocol_version max_proto)

Definition at line 216 of file stackglue.c.

void ocfs2_stack_glue_unregister ( struct ocfs2_stack_plugin plugin)

Definition at line 195 of file stackglue.c.

int ocfs2_stack_supports_plocks ( void  )

Definition at line 291 of file stackglue.c.