Searched refs:vm_tty (Results 1 – 6 of 6) sorted by relevance
| /openbsd/src/usr.sbin/vmd/ |
| D | vmm.c | 280 vm->vm_tty = imsg_get_fd(imsg); in vmm_dispatch_parent() 661 if ((vm->vm_tty = imsg_get_fd(imsg)) == -1) { in vmm_start_vm() 708 if (close_fd(vm->vm_tty) == 0) in vmm_start_vm() 709 vm->vm_tty = -1; in vmm_start_vm()
|
| D | vmd.c | 1333 vm->vm_tty = -1; in vm_register() 1744 if (fdopenpty(env->vmd_ptmfd, &vm->vm_tty, &tty_slave, vm->vm_ttyname, in vm_opentty() 1754 if (ioctl(vm->vm_tty, TIOCUCNTL, &on) == -1) { in vm_opentty() 1781 if (fstat(vm->vm_tty, &st) == -1) { in vm_opentty() 1819 if (vm->vm_tty != -1) { in vm_closetty() 1821 if (fchown(vm->vm_tty, 0, 0) == -1) in vm_closetty() 1823 if (fchmod(vm->vm_tty, 0666) == -1) in vm_closetty() 1825 close(vm->vm_tty); in vm_closetty() 1826 vm->vm_tty = -1; in vm_closetty()
|
| D | vmd.h | 320 int vm_tty; member
|
| D | config.c | 469 if ((fd = dup(vm->vm_tty)) == -1) { in config_setvm()
|
| D | virtio.c | 1474 close_fd(vm->vm_tty); in virtio_dev_launch() 1475 vm->vm_tty = -1; in virtio_dev_launch()
|
| D | vm.c | 238 con_fd = vm->vm_tty; in start_vm()
|