Lines Matching defs:node
123 int hmdfs_sendmessage(struct hmdfs_peer *node, struct hmdfs_send_data *msg)
131 if (!node) {
132 hmdfs_err("node NULL when send cmd %d",
136 } else if (node->status != NODE_STAT_ONLINE) {
138 node->device_id, node->status,
144 old_cred = hmdfs_override_creds(node->sbi->system_cred);
147 connect = get_conn_impl(node, CONNECT_TYPE_TCP);
151 node->device_id, head->operations.command);
152 if (node->status != NODE_STAT_OFFLINE) {
155 memcpy(param.remote_cid, node->cid,
159 notify(node, ¶m);
168 node->device_id, head->operations.command);
171 if (node->status != NODE_STAT_OFFLINE) {
173 if (!queue_work(node->reget_conn_wq,
179 * node->status is OFFLINE can not ensure
183 hmdfs_node_inc_evt_seq(node);
188 } while (node->status != NODE_STAT_OFFLINE);
193 statistic_con_sb_dirty(node, &head->operations);
196 hmdfs_client_snd_statis(node->sbi,
199 hmdfs_server_snd_statis(node->sbi,
301 * @peer: target device node
305 * Return -ESHUTDOWN when the device node is unachievable