Subject: Clone devices ...
To: None <tech-kern@netbsd.org>
From: Stefan Grefen <grefen@hprc.tandem.com>
List: tech-kern
Date: 08/28/1998 00:43:14
I've just send-pr'ed a clone device driver (pr kern/6060).
To installl it just add option CLONE and pseudo-device clonedev
to your config file.
This does the same as a SYSVR4 clone-device.
The option CLONE enables clone support for ALL device drivers
by a small change in specfs.
The device open function is called with an additional parameter,
which is a pointer to dev_t. If this changed than the open will
be for the changed device.
This enables stuff like bpf to have just one device in /dev and should
simplify the compat-svr4 stuff.
BTW. Any device can be cloned, not just streams as in vanilla SYSVR4.
A clone device is also included.
For details see the man-page.
Stefan
--
Stefan Grefen Tandem Computers Europe Inc.
grefen@hprc.tandem.com High Performance Research Center
Committee, n.:
A group of men who individually can do nothing but as a group
decide that nothing can be done.
-- Fred Allen