summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/line.h
Commit message (Collapse)AuthorAgeFilesLines
* um: get rid of pointless include "..." where include <...> will doAl Viro2012-10-091-6/+6
| | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
* um: remove count_lockRichard Weinberger2012-07-281-1/+0
| | | | | | this lock is no longer needed. Signed-off-by: Richard Weinberger <richard@nod.at>
* um: fully use tty_portRichard Weinberger2012-07-281-1/+5
| | | | | | ... use all tty_port helpers Signed-off-by: Richard Weinberger <richard@nod.at>
* um: remove line_ioctl()Richard Weinberger2012-07-281-2/+0
| | | | | | line_ioctl() has no real function. Signed-off-by: Richard Weinberger <richard@nod.at>
* TTY: um/line, use tty from tty_portJiri Slaby2012-07-281-1/+0
| | | | | | | | | | | This means switching to the tty refcounted model so that we will not race with interrupts. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Cc: user-mode-linux-devel@lists.sourceforge.net Signed-off-by: Richard Weinberger <richard@nod.at>
* TTY: um/line, add tty_portJiri Slaby2012-07-281-1/+1
| | | | | | | | | | And use count from there. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Cc: user-mode-linux-devel@lists.sourceforge.net Signed-off-by: Richard Weinberger <richard@nod.at>
* um: line->have_irq is never checked...Al Viro2012-03-251-1/+0
| | | | | | | looks like a half-arsed duplicate of line->enabled Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
* um: sorting out the chan mess, part 1Al Viro2012-03-251-0/+1
| | | | | | | | put references to in and out chans associated with line into explicit struct chan * fields in it. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
* um: get rid of lines_init()Al Viro2012-03-251-1/+2
| | | | | | | | | move config-independent parts of initialization into register_lines(), call setup_one_line() after it instead of abusing ->init_str. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
* um: switch line.c tty drivers to dynamic device creationAl Viro2012-03-251-4/+5
| | | | | | | | | | | | | Current code doesn't update the symlinks in /sys/dev/char when we add/remove tty lines. Fixing that allows to stop messing with ->valid before the driver registration, which is a Good Thing(tm) - we shouldn't have it set before we really have the things set up and ready for line_open(). We need tty_driver available to call tty_{un,}register_device(), so we just stash a reference to it into struct line_driver. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
* um: convert count_lock to mutex, fix a race in line_open()Al Viro2012-03-251-1/+1
| | | | | | | | | | | | | | If two processes are opening the same line, the second to get into line_open() will decide that it doesn't need to do anything (correctly) or wait for anything. The latter, unfortunately, is incorrect - the first opener might not be through yet. We need to have exclusion covering the entire line_init(), including the blocking parts. Moreover, the next patch will need to widen the exclusion on mconsole side of things, also including the blocking bits, so let's just convert that sucker to mutex... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
* um: get rid of the init_prio messAl Viro2012-03-251-11/+2
| | | | | | | | | make line_setup() act on a separate array of conf strings + default conf, have lines array initialized explicitly by that data, bury LINE_INIT() macro from hell. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
* um: take chan_*.h and line.h to arch/um/driversAl Viro2011-11-021-0/+106
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
OpenPOWER on IntegriCloud