diff options
author | phk <phk@FreeBSD.org> | 2004-02-21 20:29:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-21 20:29:52 +0000 |
commit | 32b7c9a433930842533064d829ba214aadf6a67d (patch) | |
tree | c97716bebd5c7c784bf841850192a5addeaf0347 /sys/conf | |
parent | df397dedeab80f98300da9e5999d17a57c01b19f (diff) | |
download | FreeBSD-src-32b7c9a433930842533064d829ba214aadf6a67d.zip FreeBSD-src-32b7c9a433930842533064d829ba214aadf6a67d.tar.gz |
Device megapatch 2/6:
This commit adds a couple of functions for pseudodrivers to use for
implementing cloning in a manner we will be able to lock down (shortly).
Basically what happens is that pseudo drivers get a way to ask for
"give me the dev_t with this unit number" or alternatively "give
me a dev_t with the lowest guaranteed free unit number" (there is
unfortunately a lot of non-POLA in the exact numeric value of this
number, just live with it for now)
Managing the unit number space this way removes the need to use
rman(9) to do so in the drivers this greatly simplifies the code in
the drivers because even using rman(9) they still needed to manage
their dev_t's anyway.
I have taken the if_tun, if_tap, snp and nmdm drivers through the
mill, partly because they (ab)used makedev(), but mostly because
together they represent three different problems for device-cloning:
if_tun and snp is the plain case: just give me a device.
if_tap has two kinds of devices, with a flag for device type.
nmdm has paired devices (ala pty) can you can clone either of them.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/majors | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/conf/majors b/sys/conf/majors index 62f5264..5671b38 100644 --- a/sys/conf/majors +++ b/sys/conf/majors @@ -23,7 +23,6 @@ 5 *pts pseudo tty "tty" half 6 *ptc pseudo tty "master" half 7 *log system log -18 *nmdm nullmodem back-to-back tty ports 19 *tw X-10 power interface 22 *fd (/dev/stdin etc) 30 *snd sound driver system @@ -37,7 +36,6 @@ 42 *cx Cronyx/Sigma serial adapter 43 vn vnode "disk" device (retired) 46 - - -52 *tun IP tunnel device 54 OLDnic ISDN system 58 - Was dgb: Digiboard PC/Xe 62 worm SCSI "worm type" @@ -77,7 +75,6 @@ 139 wanrouter Sangoma Technologies Inc. (al.feldman@sangoma.com) 141 pcdmx PCDMX theatre lighting controller 142 skip SKIP port (security/skip) control device -149 *tap Ethernet tunneling device <myevmenkin@att.com> 154 *asr Adaptec SCSI RAID <msmith@freebsd.org> 155 phone Quicknet PhoneJACK and LineJACK cards for VoIP <roger> 159 *ata ATA control device |