Lines Matching refs:master_fd
95 int master_fd; member
495 if (con->master_fd != -1) { in console_close_tty()
496 close(con->master_fd); in console_close_tty()
497 con->master_fd = -1; in console_close_tty()
578 assert(con->master_fd == -1); in console_create_tty()
580 if (openpty(&con->master_fd, &con->slave_fd, NULL, NULL, NULL) < 0) { in console_create_tty()
604 if ((slave = ptsname(con->master_fd)) == NULL) { in console_create_tty()
631 if (fcntl(con->master_fd, F_SETFL, O_NONBLOCK) == -1) in console_create_tty()
776 if (con->master_fd == -1) { in console_create_ring()
828 con->master_fd = -1; in console_init()
1031 len = read(con->master_fd, msg, len); in handle_tty_read()
1062 len = write(con->master_fd, con->buffer.data + con->buffer.consumed, in handle_tty_write()
1281 if (con->master_fd != -1) { in maybe_add_console_tty_fd()
1291 set_fds(con->master_fd, events|POLLPRI); in maybe_add_console_tty_fd()
1297 if (con->master_fd != -1 && con->master_pollfd_idx != -1) { in handle_console_tty()