#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/configfs.h>
#include <linux/slab.h>
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/dlmconstants.h>
#include <net/ipv6.h>
#include <net/sock.h>
#include "config.h"
#include "lowcomms.h"
Go to the source code of this file.
|
enum | {
CLUSTER_ATTR_TCP_PORT = 0,
CLUSTER_ATTR_BUFFER_SIZE,
CLUSTER_ATTR_RSBTBL_SIZE,
CLUSTER_ATTR_RECOVER_TIMER,
CLUSTER_ATTR_TOSS_SECS,
CLUSTER_ATTR_SCAN_SECS,
CLUSTER_ATTR_LOG_DEBUG,
CLUSTER_ATTR_PROTOCOL,
CLUSTER_ATTR_TIMEWARN_CS,
CLUSTER_ATTR_WAITWARN_US,
CLUSTER_ATTR_NEW_RSB_COUNT,
CLUSTER_ATTR_RECOVER_CALLBACKS,
CLUSTER_ATTR_CLUSTER_NAME
} |
|
enum | { COMM_ATTR_NODEID = 0,
COMM_ATTR_LOCAL,
COMM_ATTR_ADDR,
COMM_ATTR_ADDR_LIST
} |
|
enum | { NODE_ATTR_NODEID = 0,
NODE_ATTR_WEIGHT
} |
|
|
| CLUSTER_ATTR (tcp_port, 1) |
|
| CLUSTER_ATTR (buffer_size, 1) |
|
| CLUSTER_ATTR (rsbtbl_size, 1) |
|
| CLUSTER_ATTR (recover_timer, 1) |
|
| CLUSTER_ATTR (toss_secs, 1) |
|
| CLUSTER_ATTR (scan_secs, 1) |
|
| CLUSTER_ATTR (log_debug, 0) |
|
| CLUSTER_ATTR (protocol, 0) |
|
| CLUSTER_ATTR (timewarn_cs, 1) |
|
| CLUSTER_ATTR (waitwarn_us, 0) |
|
| CLUSTER_ATTR (new_rsb_count, 0) |
|
| CLUSTER_ATTR (recover_callbacks, 0) |
|
int __init | dlm_config_init (void) |
|
void | dlm_config_exit (void) |
|
int | dlm_config_nodes (char *lsname, struct dlm_config_node **nodes_out, int *count_out) |
|
int | dlm_comm_seq (int nodeid, uint32_t *seq) |
|
int | dlm_our_nodeid (void) |
|
int | dlm_our_addr (struct sockaddr_storage *addr, int num) |
|
#define CLUSTER_ATTR |
( |
|
name, |
|
|
|
check_zero |
|
) |
| |
Value:
{ \
} \
{ \
} \
__CONFIGFS_ATTR(name, 0644, name##_read, name##_write)
Definition at line 174 of file config.c.
#define DEFAULT_BUFFER_SIZE 4096 |
#define DEFAULT_CLUSTER_NAME "" |
#define DEFAULT_LOG_DEBUG 0 |
#define DEFAULT_NEW_RSB_COUNT 128 |
#define DEFAULT_PROTOCOL 0 |
#define DEFAULT_RECOVER_CALLBACKS 0 |
#define DEFAULT_RECOVER_TIMER 5 |
#define DEFAULT_RSBTBL_SIZE 1024 |
#define DEFAULT_SCAN_SECS 5 |
#define DEFAULT_TCP_PORT 21064 |
#define DEFAULT_TOSS_SECS 10 |
#define DEFAULT_WAITWARN_US 0 |
- Enumerator:
CLUSTER_ATTR_TCP_PORT |
|
CLUSTER_ATTR_BUFFER_SIZE |
|
CLUSTER_ATTR_RSBTBL_SIZE |
|
CLUSTER_ATTR_RECOVER_TIMER |
|
CLUSTER_ATTR_TOSS_SECS |
|
CLUSTER_ATTR_SCAN_SECS |
|
CLUSTER_ATTR_LOG_DEBUG |
|
CLUSTER_ATTR_PROTOCOL |
|
CLUSTER_ATTR_TIMEWARN_CS |
|
CLUSTER_ATTR_WAITWARN_US |
|
CLUSTER_ATTR_NEW_RSB_COUNT |
|
CLUSTER_ATTR_RECOVER_CALLBACKS |
|
CLUSTER_ATTR_CLUSTER_NAME |
|
Definition at line 111 of file config.c.
- Enumerator:
COMM_ATTR_NODEID |
|
COMM_ATTR_LOCAL |
|
COMM_ATTR_ADDR |
|
COMM_ATTR_ADDR_LIST |
|
Definition at line 217 of file config.c.
- Enumerator:
NODE_ATTR_NODEID |
|
NODE_ATTR_WEIGHT |
|
Definition at line 268 of file config.c.
CLUSTER_ATTR |
( |
tcp_port |
, |
|
|
1 |
|
|
) |
| |
CLUSTER_ATTR |
( |
rsbtbl_size |
, |
|
|
1 |
|
|
) |
| |
CLUSTER_ATTR |
( |
recover_timer |
, |
|
|
1 |
|
|
) |
| |
CLUSTER_ATTR |
( |
toss_secs |
, |
|
|
1 |
|
|
) |
| |
CLUSTER_ATTR |
( |
scan_secs |
, |
|
|
1 |
|
|
) |
| |
CLUSTER_ATTR |
( |
timewarn_cs |
, |
|
|
1 |
|
|
) |
| |
CLUSTER_ATTR |
( |
waitwarn_us |
, |
|
|
0 |
|
|
) |
| |
CLUSTER_ATTR |
( |
new_rsb_count |
, |
|
|
0 |
|
|
) |
| |
CLUSTER_ATTR |
( |
recover_callbacks |
, |
|
|
0 |
|
|
) |
| |