Driver mapping refactory.

VFS CHANGES:
- dmap table no longer statically initialized in VFS
- Dropped FSSIGNON svrctl call no longer used by INET

INET CHANGES:
- INET announces its presence to VFS just like any other driver

RS CHANGES:
- The boot image dev table contains all the data to initialize VFS' dmap table
- RS interface supports asynchronous up and update operations now
- RS interface extended to support driver style and flags
This commit is contained in:
Cristiano Giuffrida
2010-04-09 21:56:44 +00:00
parent c1bfcc9119
commit 65ef539739
34 changed files with 357 additions and 280 deletions

8
etc/rc
View File

@@ -16,14 +16,16 @@ usage()
exec intr sh
}
up()
upopt()
{
opt=$1
shift
service=$1
shift
# Function to dynamically start a system service
echo -n " $service"
service up /sbin/$service "$@"
service $opt up /sbin/$service "$@"
}
while getopts 'saf' opt
@@ -59,7 +61,7 @@ start)
if [ "`sysenv debug_fkeys`" != 0 ]
then
up is -period 5HZ
upopt -n is -period 5HZ
fi
echo .

View File

@@ -54,6 +54,13 @@ daemonize()
up()
{
upopt " " "$@"
}
upopt()
{
opt=$1
shift
service=$1
shift
@@ -64,7 +71,7 @@ up()
# Service is not disabled. Try to bring it up.
echo -n " $service"
service up /usr/sbin/$service "$@"
service $opt up /usr/sbin/$service "$@"
}
@@ -80,7 +87,7 @@ start)
# Start servers and drivers set at the boot monitor.
echo -n "Starting services:"
up random -dev /dev/random -period 3HZ
upopt -n random -dev /dev/random -devstyle STYLE_DEVA -period 3HZ
# load random number generator
if [ -f $RANDOM_FILE ]
@@ -100,9 +107,9 @@ start)
eval up $driver $arg -period 5HZ
fi
done
up inet -script /etc/rs.inet
up printer -dev /dev/lp -period 10HZ
up ipc
upopt -n inet -script /etc/rs.inet -dev /dev/ip -devstyle STYLE_CLONE
upopt -n printer -dev /dev/lp -period 10HZ
upopt -n ipc
echo .
# Network initialization.