Esempio n. 1
0
static void ipoctal_close(struct tty_struct *tty, struct file *filp)
{
	struct ipoctal_channel *channel = tty->driver_data;

	tty_port_close(&channel->tty_port, tty, filp);
	ipoctal_free_channel(channel);
}
Esempio n. 2
0
void ipoctal_close(struct tty_struct *tty, struct file *filp)
{
	int channel = tty->index;
	int index = *(int *)tty->driver_data;

	ipoctal_installed[index].open[channel]--;

	if(!ipoctal_installed[index].open[channel]) {
		ipoctal_free_channel(tty);
		ipoctal_installed[index].tty[channel] = NULL;
	}
}