Please check the manual page ioctl_tty(2).