|
Motr
M0
|
|
Functions | |
| void | m0_net_test_nh_init (struct m0_net_test_nh *nh, const struct m0_net_test_cmd_init *icmd) |
| bool | m0_net_test_nh__invariant (struct m0_net_test_nh *nh) |
| void | m0_net_test_nh_fini (struct m0_net_test_nh *nh) |
| void | m0_net_test_nh_sd_copy_locked (struct m0_net_test_nh *nh) |
| void | m0_net_test_nh_sd_get_locked (struct m0_net_test_nh *nh, struct m0_net_test_cmd_status_data *sd) |
| void | m0_net_test_nh_sd_update (struct m0_net_test_nh *nh, enum m0_net_test_nh_msg_type type, enum m0_net_test_nh_msg_status status, enum m0_net_test_nh_msg_direction direction) |
| void | m0_net_test_nh_sd_update_rtt (struct m0_net_test_nh *nh, m0_time_t rtt) |
| bool | m0_net_test_nh_transfer_next (struct m0_net_test_nh *nh) |
| void | m0_net_test_nh_cmd_status (struct m0_net_test_nh *nh, const struct m0_net_test_cmd *cmd, struct m0_net_test_cmd *reply) |
| bool m0_net_test_nh__invariant | ( | struct m0_net_test_nh * | nh | ) |
Invariant for m0_net_test_nh
Definition at line 51 of file node_helper.c.

| void m0_net_test_nh_cmd_status | ( | struct m0_net_test_nh * | nh, |
| const struct m0_net_test_cmd * | cmd, | ||
| struct m0_net_test_cmd * | reply | ||
| ) |
M0_NET_TEST_CMD_STATUS handler
Definition at line 146 of file node_helper.c.


| void m0_net_test_nh_fini | ( | struct m0_net_test_nh * | nh | ) |
Finalize node helper structure
Definition at line 56 of file node_helper.c.

| void m0_net_test_nh_init | ( | struct m0_net_test_nh * | nh, |
| const struct m0_net_test_cmd_init * | icmd | ||
| ) |
Initialize node helper structure. Take some information from icmd
Definition at line 34 of file node_helper.c.


| void m0_net_test_nh_sd_copy_locked | ( | struct m0_net_test_nh * | nh | ) |
nh->ntnh_sd_copy = nh->ntnh_sd while holding nh->ntnh_sd_copy_lock.
Definition at line 63 of file node_helper.c.


| void m0_net_test_nh_sd_get_locked | ( | struct m0_net_test_nh * | nh, |
| struct m0_net_test_cmd_status_data * | sd | ||
| ) |
*sd = nh->ntnh_sd_copy while holding nh->ntnh_sd_copy_lock. Also set sd->ntcsd_time_now to the current time.
Definition at line 72 of file node_helper.c.


| void m0_net_test_nh_sd_update | ( | struct m0_net_test_nh * | nh, |
| enum m0_net_test_nh_msg_type | type, | ||
| enum m0_net_test_nh_msg_status | status, | ||
| enum m0_net_test_nh_msg_direction | direction | ||
| ) |
Update statistics for message numbers.
Definition at line 83 of file node_helper.c.


| void m0_net_test_nh_sd_update_rtt | ( | struct m0_net_test_nh * | nh, |
| m0_time_t | rtt | ||
| ) |
Update round-trip statistics
Definition at line 129 of file node_helper.c.


| bool m0_net_test_nh_transfer_next | ( | struct m0_net_test_nh * | nh | ) |
Increase number of started transfers.
Definition at line 136 of file node_helper.c.

