Lines Matching defs:nodeid
73 static int name_from_nodeid(int nodeid, char *name);
76 char *buf, int len, uint8_t port, int nodeid);
155 int nodeid = 0;
158 memcpy(&nodeid, csid, CMAN_MAX_CSID_LEN);
160 if (cman_send_data(c_handle, buf, msglen, 0, CLUSTER_PORT_CLVMD, nodeid) <= 0)
249 char *buf, int len, uint8_t port, int nodeid)
252 if (nodeid == this_node.cn_nodeid)
254 process_message(cman_client, buf, len, (char *)&nodeid);
260 int nodeid = nodeid_from_csid(csid);
262 dm_hash_insert_binary(node_updown_hash, (char *)&nodeid, sizeof(int), (void *)1);
263 DEBUGLOG("Added new node %d to updown list\n", nodeid);
273 static int is_listening(int nodeid)
278 status = cman_is_listening(c_handle, nodeid, CLUSTER_PORT_CLVMD);
296 int nodeid = nodes[i].cn_nodeid;
298 if (is_listening(nodeid) == 1)
299 dm_hash_insert_binary(node_updown_hash, (void *)&nodeid, sizeof(int), (void*)1);
301 dm_hash_insert_binary(node_updown_hash, (void *)&nodeid, sizeof(int), (void*)0);
340 /* Get the highest nodeid */
379 static int name_from_nodeid(int nodeid, char *name)
384 if (nodeid == nodes[i].cn_nodeid) {
397 int nodeid;
399 memcpy(&nodeid, csid, CMAN_MAX_CSID_LEN);
401 return nodeid;