From 664b726cd34a12e4dfa56644ae2728506c7f6a4a Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Sun, 6 Oct 2013 15:58:54 +0200 Subject: [PATCH] VFS: further cleanup of device code - all TTY-related exceptions have now been merged into the regular code paths, allowing non-TTY drivers to expose TTY-like devices; - as part of this, CTTY_MAJOR is now fully managed by VFS instead of being an ugly stepchild of the TTY driver; - device styles have become completely obsolete, support for them has been removed throughout the system; same for device flags, which had already become useless a while ago; - device map open/close and I/O function pointers have lost their use, thus finally making the VFS device code actually readable; - the device-unrelated pm_setsid has been moved to misc.c; - some other small cleanup-related changes. Change-Id: If90b10d1818e98a12139da3e94a15d250c9933da --- commands/service/service.8 | 10 +- commands/service/service.c | 29 +-- include/lib.h | 2 +- include/minix/const.h | 3 - include/minix/dmap.h | 3 - include/minix/rs.h | 6 +- lib/libminlib/mapdriver.c | 6 +- servers/is/dmp_fs.c | 33 +-- servers/is/dmp_rs.c | 4 +- servers/rs/const.h | 4 - servers/rs/main.c | 3 - servers/rs/manager.c | 13 +- servers/rs/table.c | 11 +- servers/rs/type.h | 3 - servers/rs/utility.c | 4 +- servers/vfs/comm.c | 10 + servers/vfs/const.h | 3 + servers/vfs/device.c | 423 +++++++++++++------------------------ servers/vfs/dmap.c | 185 ++++++---------- servers/vfs/dmap.h | 6 +- servers/vfs/main.c | 27 ++- servers/vfs/misc.c | 19 ++ servers/vfs/param.h | 2 - servers/vfs/proto.h | 17 +- servers/vfs/utility.c | 2 +- 25 files changed, 269 insertions(+), 559 deletions(-) diff --git a/commands/service/service.8 b/commands/service/service.8 index d46d29bbb..711c02248 100644 --- a/commands/service/service.8 +++ b/commands/service/service.8 @@ -5,7 +5,7 @@ service \- Manage an operating system service. .PP \fBservice [-b -c -n -p -r] (up|run|edit|update)\fR \fI\fR [\fB-args\fR \fI\fR] [\fB-dev\fR \fI\fR] -[\fB-devstyle\fR \fI