#include <linux/kernel.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/idr.h>
#include <linux/kref.h>
#include <linux/net.h>
#include <linux/export.h>
#include <net/tcp.h>
#include <asm/uaccess.h>
#include "heartbeat.h"
#include "tcp.h"
#include "nodemanager.h"
#include "masklog.h"
#include "quorum.h"
#include "tcp_internal.h"
Go to the source code of this file.
|
#define | MLOG_MASK_PREFIX ML_TCP |
|
#define | SC_NODEF_FMT "node %s (num %u) at %pI4:%u" |
|
#define | SC_NODEF_ARGS(sc) |
|
#define | msglog(hdr, fmt, args...) |
|
#define | sclog(sc, fmt, args...) |
|
#define | O2NET_HB_PRI 0x1 |
|
#define | o2net_init_nst(a, b, c, d, e) |
|
#define | o2net_set_nst_sock_time(a) |
|
#define | o2net_set_nst_send_time(a) |
|
#define | o2net_set_nst_status_time(a) |
|
#define | o2net_set_nst_sock_container(a, b) |
|
#define | o2net_set_nst_msg_id(a, b) |
|
#define | o2net_set_sock_timer(a) |
|
#define | o2net_set_data_ready_time(a) |
|
#define | o2net_set_advance_start_time(a) |
|
#define | o2net_set_advance_stop_time(a) |
|
#define | o2net_set_func_start_time(a) |
|
#define | o2net_set_func_stop_time(a) |
|
#define | o2net_update_send_stats(a, b) |
|
#define | o2net_update_recv_stats(sc) |
|
|
int | o2net_num_connected_peers (void) |
|
int | o2net_register_handler (u32 msg_type, u32 key, u32 max_len, o2net_msg_handler_func *func, void *data, o2net_post_msg_handler_func *post_func, struct list_head *unreg_list) |
|
| EXPORT_SYMBOL_GPL (o2net_register_handler) |
|
void | o2net_unregister_handler_list (struct list_head *list) |
|
| EXPORT_SYMBOL_GPL (o2net_unregister_handler_list) |
|
void | o2net_fill_node_map (unsigned long *map, unsigned bytes) |
|
| EXPORT_SYMBOL_GPL (o2net_fill_node_map) |
|
int | o2net_send_message_vec (u32 msg_type, u32 key, struct kvec *caller_vec, size_t caller_veclen, u8 target_node, int *status) |
|
| EXPORT_SYMBOL_GPL (o2net_send_message_vec) |
|
int | o2net_send_message (u32 msg_type, u32 key, void *data, u32 len, u8 target_node, int *status) |
|
| EXPORT_SYMBOL_GPL (o2net_send_message) |
|
void | o2net_disconnect_node (struct o2nm_node *node) |
|
void | o2net_unregister_hb_callbacks (void) |
|
int | o2net_register_hb_callbacks (void) |
|
int | o2net_start_listening (struct o2nm_node *node) |
|
void | o2net_stop_listening (struct o2nm_node *node) |
|
int | o2net_init (void) |
|
void | o2net_exit (void) |
|
#define MLOG_MASK_PREFIX ML_TCP |
Definition at line 70 of file tcp.c.
#define msglog |
( |
|
hdr, |
|
|
|
fmt, |
|
|
|
args... |
|
) |
| |
Value:
Definition at line 86 of file tcp.c.
#define o2net_init_nst |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e |
|
) |
| |
#define o2net_set_advance_start_time |
( |
|
a | ) |
|
#define o2net_set_advance_stop_time |
( |
|
a | ) |
|
#define o2net_set_data_ready_time |
( |
|
a | ) |
|
#define o2net_set_func_start_time |
( |
|
a | ) |
|
#define o2net_set_func_stop_time |
( |
|
a | ) |
|
#define o2net_set_nst_msg_id |
( |
|
a, |
|
|
|
b |
|
) |
| |
#define o2net_set_nst_send_time |
( |
|
a | ) |
|
#define o2net_set_nst_sock_container |
( |
|
a, |
|
|
|
b |
|
) |
| |
#define o2net_set_nst_sock_time |
( |
|
a | ) |
|
#define o2net_set_nst_status_time |
( |
|
a | ) |
|
#define o2net_set_sock_timer |
( |
|
a | ) |
|
#define o2net_update_recv_stats |
( |
|
sc | ) |
|
#define o2net_update_send_stats |
( |
|
a, |
|
|
|
b |
|
) |
| |
#define SC_NODEF_ARGS |
( |
|
sc | ) |
|
Value:sc->sc_node->nd_name,
sc->sc_node->nd_num, \
&
sc->sc_node->nd_ipv4_address, \
ntohs(
sc->sc_node->nd_ipv4_port)
Definition at line 77 of file tcp.c.
#define SC_NODEF_FMT "node %s (num %u) at %pI4:%u" |
Definition at line 76 of file tcp.c.
#define sclog |
( |
|
sc, |
|
|
|
fmt, |
|
|
|
args... |
|
) |
| |
Value:do { \
typeof(
sc) __sc = (
sc); \
"pg_off %zu] "
fmt, __sc, \
__sc->sc_node->nd_num, __sc->sc_page, __sc->sc_page_off , \
##args); \
} while (0)
Definition at line 96 of file tcp.c.
void o2net_fill_node_map |
( |
unsigned long * |
map, |
|
|
unsigned |
bytes |
|
) |
| |
int o2net_num_connected_peers |
( |
void |
| ) |
|
int o2net_register_hb_callbacks |
( |
void |
| ) |
|
void o2net_unregister_hb_callbacks |
( |
void |
| ) |
|