Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/kern/lib/libtty Initialize non-VFS parts of tty sub...
details: https://anonhg.NetBSD.org/src/rev/cbd05a8c1ffc
branches: trunk
changeset: 342762:cbd05a8c1ffc
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jan 07 21:09:01 2016 +0000
description:
Initialize non-VFS parts of tty subsystem already at RUMP_COMPONENT_KERN.
That way components under RUMP__FACTION_DEV can call tty routines.
diffstat:
sys/rump/kern/lib/libtty/tty_component.c | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diffs (45 lines):
diff -r 2c7ce17be5a1 -r cbd05a8c1ffc sys/rump/kern/lib/libtty/tty_component.c
--- a/sys/rump/kern/lib/libtty/tty_component.c Thu Jan 07 21:04:27 2016 +0000
+++ b/sys/rump/kern/lib/libtty/tty_component.c Thu Jan 07 21:09:01 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty_component.c,v 1.2 2015/08/20 11:59:16 christos Exp $ */
+/* $NetBSD: tty_component.c,v 1.3 2016/01/07 21:09:01 pooka Exp $ */
/*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_component.c,v 1.2 2015/08/20 11:59:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_component.c,v 1.3 2016/01/07 21:09:01 pooka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -38,6 +38,15 @@
#include "ioconf.h"
+RUMP_COMPONENT(RUMP_COMPONENT_KERN)
+{
+
+ tty_init();
+ ttyldisc_init();
+
+ rump_ttycomponent = true;
+}
+
RUMP_COMPONENT(RUMP_COMPONENT_KERN_VFS)
{
extern const struct cdevsw ctty_cdevsw, ptc_cdevsw, pts_cdevsw;
@@ -64,10 +73,5 @@
FLAWLESSCALL(rump_vfs_makeonedevnode(S_IFCHR, "/dev/ptmx", cmaj, 0));
FLAWLESSCALL(rump_vfs_makeonedevnode(S_IFCHR, "/dev/ptm", cmaj, 1));
- tty_init();
- ttyldisc_init();
-
ptyattach(1);
-
- rump_ttycomponent = true;
}
Home |
Main Index |
Thread Index |
Old Index