Lines Matching refs:hostname
88 const char *device, const char *hostname) in build_node_desc() argument
101 field = hostname; in build_node_desc()
117 static int update_node_desc(const char *device, const char *hostname, int force) in update_node_desc() argument
142 build_node_desc(new_nd, sizeof(new_nd), device, hostname); in update_node_desc()
159 static int set_rdma_node_desc(const char *hostname, int force) in set_rdma_node_desc() argument
179 while (update_node_desc(dent->d_name, hostname, force) && retry > 0) { in set_rdma_node_desc()
282 static void process_udev_event(int ud_fd, const char *hostname) in process_udev_event() argument
297 update_node_desc(device, hostname, 1); in process_udev_event()
305 char hostname[128]; in monitor() local
337 if (read_hostname(hn_fd, hostname, sizeof(hostname)) != 0) in monitor()
338 hostname[0] = '\0'; in monitor()
341 syslog(LOG_ERR, "Hostname change: %s\n", hostname); in monitor()
344 process_udev_event(ud_fd, hostname); in monitor()
346 rc = set_rdma_node_desc((const char *)hostname, 0); in monitor()
385 char hostname[128]; in main() local
423 if (read_hostname(fd, hostname, sizeof(hostname)) != 0) in main()
424 hostname[0] = '\0'; in main()
425 set_rdma_node_desc((const char *)hostname, 1); in main()