mesh_driver/lunix-ldisc.c
static int lunix_ldisc_open(struct tty_struct *tty)
{
	if (!capable(CAP_SYS_ADMIN))
		return -EPERM;
	
	/* Can only be associated with a single TTY */
	if ( !atomic_add_unless(&lunix_disc_available, -1, 0))
		return -EBUSY;

	tty->receive_room = 65536; /* No flow control, FIXME */

	debug("lunix ldisc associated with TTY %s\n", tty->name);
	return 0;
}
/*
 * This function runs when the userspace helper
 * sets the Lunix:TNG line discipline on a TTY.
 */
This function runs when the userspace helper
sets the Lunix:TNG line discipline on a TTY.
This function runs when the userspace helper sets the Lunix : TNG line discipline on a TTY .
static int lunix_ldisc_open(struct tty_struct *tty)
{
	if (!capable(CAP_SYS_ADMIN))
		return -EPERM;
	if ( !atomic_add_unless(&lunix_disc_available, -1, 0))
		return -EBUSY;
	tty->receive_room = 65536; 
	debug("lunix ldisc associated with TTY %s\n", tty->name);
	return 0;
}
static int lunix_ldisc_open ( struct tty_struct * tty ) { if ( ! capable ( CAP_SYS_ADMIN ) ) return - EPERM ; if ( ! atomic_add_unless ( & lunix_disc_available , -1 , 0 ) ) return - EBUSY ; tty -> receive_room = 65536 ; debug ( " \n " , tty -> name ) ; return 0 ; }
This function runs when the userspace helper
 sets the Lunix:TNG line discipline on a TTY.
This function runs when the userspace helper sets the Lunix : TNG line discipline on a TTY .
/* Can only be associated with a single TTY */ /* No flow control, FIXME */