Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dlmdomain.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/highmem.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/debugfs.h>
#include "cluster/heartbeat.h"
#include "cluster/nodemanager.h"
#include "cluster/tcp.h"
#include "dlmapi.h"
#include "dlmcommon.h"
#include "dlmdomain.h"
#include "dlmdebug.h"
#include "dlmver.h"
#include "cluster/masklog.h"

Go to the source code of this file.

Data Structures

struct  domain_join_ctxt
 

Macros

#define MLOG_MASK_PREFIX   (ML_DLM|ML_DLM_DOMAIN)
 
#define DLM_DOMAIN_BACKOFF_MS   200
 
#define DLM_JOIN_TIMEOUT_MSECS   90000
 

Functions

 DEFINE_SPINLOCK (dlm_domain_lock)
 
 LIST_HEAD (dlm_domains)
 
void __dlm_unhash_lockres (struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
 
void __dlm_insert_lockres (struct dlm_ctxt *dlm, struct dlm_lock_resource *res)
 
struct dlm_lock_resource__dlm_lookup_lockres_full (struct dlm_ctxt *dlm, const char *name, unsigned int len, unsigned int hash)
 
struct dlm_lock_resource__dlm_lookup_lockres (struct dlm_ctxt *dlm, const char *name, unsigned int len, unsigned int hash)
 
struct dlm_lock_resourcedlm_lookup_lockres (struct dlm_ctxt *dlm, const char *name, unsigned int len)
 
void dlm_put (struct dlm_ctxt *dlm)
 
struct dlm_ctxtdlm_grab (struct dlm_ctxt *dlm)
 
int dlm_domain_fully_joined (struct dlm_ctxt *dlm)
 
int dlm_joined (struct dlm_ctxt *dlm)
 
int dlm_shutting_down (struct dlm_ctxt *dlm)
 
void dlm_unregister_domain (struct dlm_ctxt *dlm)
 
 EXPORT_SYMBOL_GPL (dlm_unregister_domain)
 
struct dlm_ctxtdlm_register_domain (const char *domain, u32 key, struct dlm_protocol_version *fs_proto)
 
 EXPORT_SYMBOL_GPL (dlm_register_domain)
 
void dlm_fire_domain_eviction_callbacks (struct dlm_ctxt *dlm, int node_num)
 
void dlm_setup_eviction_cb (struct dlm_eviction_cb *cb, dlm_eviction_func *f, void *data)
 
 EXPORT_SYMBOL_GPL (dlm_setup_eviction_cb)
 
void dlm_register_eviction_cb (struct dlm_ctxt *dlm, struct dlm_eviction_cb *cb)
 
 EXPORT_SYMBOL_GPL (dlm_register_eviction_cb)
 
void dlm_unregister_eviction_cb (struct dlm_eviction_cb *cb)
 
 EXPORT_SYMBOL_GPL (dlm_unregister_eviction_cb)
 
 MODULE_AUTHOR ("Oracle")
 
 MODULE_LICENSE ("GPL")
 
 module_init (dlm_init)
 
 module_exit (dlm_exit)
 

Macro Definition Documentation

#define DLM_DOMAIN_BACKOFF_MS   200

Definition at line 143 of file dlmdomain.c.

#define DLM_JOIN_TIMEOUT_MSECS   90000
#define MLOG_MASK_PREFIX   (ML_DLM|ML_DLM_DOMAIN)

Definition at line 48 of file dlmdomain.c.

Function Documentation

void __dlm_insert_lockres ( struct dlm_ctxt dlm,
struct dlm_lock_resource res 
)

Definition at line 171 of file dlmdomain.c.

struct dlm_lock_resource* __dlm_lookup_lockres ( struct dlm_ctxt dlm,
const char name,
unsigned int  len,
unsigned int  hash 
)
read

Definition at line 225 of file dlmdomain.c.

struct dlm_lock_resource* __dlm_lookup_lockres_full ( struct dlm_ctxt dlm,
const char name,
unsigned int  len,
unsigned int  hash 
)
read

Definition at line 190 of file dlmdomain.c.

void __dlm_unhash_lockres ( struct dlm_ctxt dlm,
struct dlm_lock_resource res 
)

Definition at line 160 of file dlmdomain.c.

DEFINE_SPINLOCK ( dlm_domain_lock  )
int dlm_domain_fully_joined ( struct dlm_ctxt dlm)

Definition at line 392 of file dlmdomain.c.

void dlm_fire_domain_eviction_callbacks ( struct dlm_ctxt dlm,
int  node_num 
)

Definition at line 2298 of file dlmdomain.c.

struct dlm_ctxt* dlm_grab ( struct dlm_ctxt dlm)
read

Definition at line 369 of file dlmdomain.c.

int dlm_joined ( struct dlm_ctxt dlm)

Definition at line 689 of file dlmdomain.c.

struct dlm_lock_resource* dlm_lookup_lockres ( struct dlm_ctxt dlm,
const char name,
unsigned int  len 
)
read

Definition at line 250 of file dlmdomain.c.

void dlm_put ( struct dlm_ctxt dlm)

Definition at line 354 of file dlmdomain.c.

struct dlm_ctxt* dlm_register_domain ( const char domain,
u32  key,
struct dlm_protocol_version fs_proto 
)
read

Definition at line 2127 of file dlmdomain.c.

void dlm_register_eviction_cb ( struct dlm_ctxt dlm,
struct dlm_eviction_cb cb 
)

Definition at line 2323 of file dlmdomain.c.

void dlm_setup_eviction_cb ( struct dlm_eviction_cb cb,
dlm_eviction_func f,
void data 
)

Definition at line 2313 of file dlmdomain.c.

int dlm_shutting_down ( struct dlm_ctxt dlm)

Definition at line 703 of file dlmdomain.c.

void dlm_unregister_domain ( struct dlm_ctxt dlm)

Definition at line 717 of file dlmdomain.c.

void dlm_unregister_eviction_cb ( struct dlm_eviction_cb cb)

Definition at line 2332 of file dlmdomain.c.

EXPORT_SYMBOL_GPL ( dlm_unregister_domain  )
EXPORT_SYMBOL_GPL ( dlm_register_domain  )
EXPORT_SYMBOL_GPL ( dlm_setup_eviction_cb  )
EXPORT_SYMBOL_GPL ( dlm_register_eviction_cb  )
EXPORT_SYMBOL_GPL ( dlm_unregister_eviction_cb  )
LIST_HEAD ( dlm_domains  )
MODULE_AUTHOR ( "Oracle"  )
module_exit ( dlm_exit  )
module_init ( dlm_init  )
MODULE_LICENSE ( "GPL"  )