Lines Matching refs:fdname
63 static bool monitor_add_fd(Monitor *mon, int fd, const char *fdname, Error **errp) in monitor_add_fd() argument
67 if (qemu_isdigit(fdname[0])) { in monitor_add_fd()
79 if (strcmp(monfd->name, fdname) != 0) { in monitor_add_fd()
92 monfd->name = g_strdup(fdname); in monitor_add_fd()
101 void qmp_getfd(const char *fdname, Error **errp) in qmp_getfd() argument
112 monitor_add_fd(cur_mon, fd, fdname, errp); in qmp_getfd()
116 void qmp_closefd(const char *fdname, Error **errp) in qmp_closefd() argument
124 if (strcmp(monfd->name, fdname) != 0) { in qmp_closefd()
139 error_setg(errp, "File descriptor named '%s' not found", fdname); in qmp_closefd()
142 int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp) in monitor_get_fd() argument
150 if (strcmp(monfd->name, fdname) != 0) { in monitor_get_fd()
165 error_setg(errp, "File descriptor named '%s' has not been found", fdname); in monitor_get_fd()
232 void qmp_get_win32_socket(const char *infos, const char *fdname, Error **errp) in qmp_get_win32_socket() argument
261 monitor_add_fd(monitor_cur(), fd, fdname, errp); in qmp_get_win32_socket()
495 int monitor_fd_param(Monitor *mon, const char *fdname, Error **errp) in monitor_fd_param() argument
499 if (!qemu_isdigit(fdname[0]) && mon) { in monitor_fd_param()
500 fd = monitor_get_fd(mon, fdname, errp); in monitor_fd_param()
502 fd = qemu_parse_fd(fdname); in monitor_fd_param()
505 fdname); in monitor_fd_param()