<dec f='src/src/sys/sys/tty.h' l='300' type='void tty_attach(struct tty * )'/>
<use f='src/src/sys/arch/xen/xen/xencons.c' l='177' u='c' c='xencons_attach'/>
<def f='src/src/sys/kern/tty.c' l='2765' ll='2773' type='void tty_attach(struct tty * tp)'/>
<doc f='src/src/sys/kern/tty.c' l='2753'>/*
 * Attach a tty to the tty list.
 *
 * This should be called ONLY once per real tty (including pty&apos;s).
 * eg, on the sparc, the keyboard and mouse have struct tty&apos;s that are
 * distinctly NOT usable as tty&apos;s, and thus should not be attached to
 * the ttylist.  This is why this call is not done from tty_alloc().
 *
 * Device drivers should attach tty&apos;s at a similar time that they are
 * allocated, or, for the case of statically allocated struct tty&apos;s
 * either in the attach or (first) open routine.
 */</doc>
<use f='src/src/sys/kern/tty_pty.c' l='310' u='c' c='pty_check'/>
