#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 <linux/uaccess.h>
#include <net/tcp.h>
#include "heartbeat.h"
#include "tcp.h"
#include "nodemanager.h"
#include "masklog.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 | msglog(hdr, fmt, args...) |
|
#define | sclog(sc, fmt, args...) |
|
#define | R2NET_HB_PRI 0x1 |
|
#define | r2net_init_nst(a, b, c, d, e) |
|
#define | r2net_set_nst_sock_time(a) |
|
#define | r2net_set_nst_send_time(a) |
|
#define | r2net_set_nst_status_time(a) |
|
#define | r2net_set_nst_sock_container(a, b) |
|
#define | r2net_set_nst_msg_id(a, b) |
|
#define | r2net_set_sock_timer(a) |
|
#define | r2net_set_data_ready_time(a) |
|
#define | r2net_set_advance_start_time(a) |
|
#define | r2net_set_advance_stop_time(a) |
|
#define | r2net_set_func_start_time(a) |
|
#define | r2net_set_func_stop_time(a) |
|
#define | r2net_update_send_stats(a, b) |
|
#define | r2net_update_recv_stats(sc) |
|
|
struct r2net_node * | r2net_nn_from_num (u8 node_num) |
|
int | r2net_num_connected_peers (void) |
|
int | r2net_register_handler (u32 msg_type, u32 key, u32 max_len, r2net_msg_handler_func *func, void *data, r2net_post_msg_handler_func *post_func, struct list_head *unreg_list) |
|
| EXPORT_SYMBOL_GPL (r2net_register_handler) |
|
void | r2net_unregister_handler_list (struct list_head *list) |
|
| EXPORT_SYMBOL_GPL (r2net_unregister_handler_list) |
|
void | r2net_fill_node_map (unsigned long *map, unsigned bytes) |
|
| EXPORT_SYMBOL_GPL (r2net_fill_node_map) |
|
int | r2net_send_message_vec (u32 msg_type, u32 key, struct kvec *caller_vec, size_t caller_veclen, u8 target_node, int *status) |
|
| EXPORT_SYMBOL_GPL (r2net_send_message_vec) |
|
int | r2net_send_message (u32 msg_type, u32 key, void *data, u32 len, u8 target_node, int *status) |
|
| EXPORT_SYMBOL_GPL (r2net_send_message) |
|
void | r2net_force_data_magic (struct r2net_msg *hdr, u16 msgtype, u32 msgkey) |
|
void | r2net_disconnect_node (struct r2nm_node *node) |
|
void | r2net_unregister_hb_callbacks (void) |
|
int | r2net_register_hb_callbacks (void) |
|
int | r2net_start_listening (struct r2nm_node *node) |
|
void | r2net_stop_listening (struct r2nm_node *node) |
|
void | r2net_hb_node_up_manual (int node_num) |
|
int | r2net_init (void) |
|
void | r2net_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 82 of file tcp.c.
#define r2net_init_nst |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d, |
|
|
|
e |
|
) |
| |
#define r2net_set_advance_start_time |
( |
|
a | ) |
|
#define r2net_set_advance_stop_time |
( |
|
a | ) |
|
#define r2net_set_data_ready_time |
( |
|
a | ) |
|
#define r2net_set_func_start_time |
( |
|
a | ) |
|
#define r2net_set_func_stop_time |
( |
|
a | ) |
|
#define r2net_set_nst_msg_id |
( |
|
a, |
|
|
|
b |
|
) |
| |
#define r2net_set_nst_send_time |
( |
|
a | ) |
|
#define r2net_set_nst_sock_container |
( |
|
a, |
|
|
|
b |
|
) |
| |
#define r2net_set_nst_sock_time |
( |
|
a | ) |
|
#define r2net_set_nst_status_time |
( |
|
a | ) |
|
#define r2net_set_sock_timer |
( |
|
a | ) |
|
#define r2net_update_recv_stats |
( |
|
sc | ) |
|
#define r2net_update_send_stats |
( |
|
a, |
|
|
|
b |
|
) |
| |
#define SC_NODEF_FMT "node %s (num %u) at %pI4:%u" |
Definition at line 75 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 92 of file tcp.c.
void r2net_fill_node_map |
( |
unsigned long * |
map, |
|
|
unsigned |
bytes |
|
) |
| |
void r2net_hb_node_up_manual |
( |
int |
node_num | ) |
|
int r2net_num_connected_peers |
( |
void |
| ) |
|
int r2net_register_hb_callbacks |
( |
void |
| ) |
|
void r2net_unregister_hb_callbacks |
( |
void |
| ) |
|