tty_ioctl(): start taking TIOC[SG]SERIAL into separate methods