Lines Matching refs:monfd
65 mon_fd_t *monfd; in monitor_add_fd() local
76 QLIST_FOREACH(monfd, &mon->fds, next) { in monitor_add_fd()
79 if (strcmp(monfd->name, fdname) != 0) { in monitor_add_fd()
83 tmp_fd = monfd->fd; in monitor_add_fd()
84 monfd->fd = fd; in monitor_add_fd()
91 monfd = g_new0(mon_fd_t, 1); in monitor_add_fd()
92 monfd->name = g_strdup(fdname); in monitor_add_fd()
93 monfd->fd = fd; in monitor_add_fd()
95 QLIST_INSERT_HEAD(&mon->fds, monfd, next); in monitor_add_fd()
119 mon_fd_t *monfd; in qmp_closefd() local
123 QLIST_FOREACH(monfd, &cur_mon->fds, next) { in qmp_closefd()
124 if (strcmp(monfd->name, fdname) != 0) { in qmp_closefd()
128 QLIST_REMOVE(monfd, next); in qmp_closefd()
129 tmp_fd = monfd->fd; in qmp_closefd()
130 g_free(monfd->name); in qmp_closefd()
131 g_free(monfd); in qmp_closefd()
144 mon_fd_t *monfd; in monitor_get_fd() local
147 QLIST_FOREACH(monfd, &mon->fds, next) { in monitor_get_fd()
150 if (strcmp(monfd->name, fdname) != 0) { in monitor_get_fd()
154 fd = monfd->fd; in monitor_get_fd()
158 QLIST_REMOVE(monfd, next); in monitor_get_fd()
159 g_free(monfd->name); in monitor_get_fd()
160 g_free(monfd); in monitor_get_fd()