/* Set up the line discipline objects for a newly allocated tty. Note that the tty structure is not completely set up when this call is made.  */
void tty_ldisc_init(struct tty_struct *tty)
/* Set up the line discipline objects for a newly allocated tty. Note that the tty structure is not completely set up when this call is made.  */
void tty_ldisc_init(struct tty_struct *tty)
{
    if (tty)
    {
        tty->ldisc = tty_ldisc_get(tty, N_TTY);
    }
}