Re: [PATCH 6/7] tty/powerpc: introduce the ePAPR embedded hypervisorbyte channel driver
From: Timur Tabi
Date: Thu May 19 2011 - 12:32:01 EST
Alan Cox wrote:
> You really also need a hangup method so vhangup() does the right thing
> and you can securely do logins etc and sessions on your console. As
> you've got no hardware entangled in this and you already use tty_port
> helpers the hangup helper will do the work for you.
So all I need is this?
static void ehv_bc_tty_hangup(struct tty_struct *ttys)
struct ehv_bc_data *bc = ttys->driver_data;
I've noticed that some drivers flush their transmit buffers before calling
tty_port_hangup(), but some others don't. Should I do this too? I don't know
if hangup should be as quick as possible.
Linux kernel developer at Freescale
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/