Replace NOCDEV with NULL. NOCDEV was ((void *)-1) and as inherited
commit69fb130cfc09a503c057ec810d6f650d34b9c16e
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 8 May 2007 02:31:43 +0000 (8 02:31 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 8 May 2007 02:31:43 +0000 (8 02:31 +0000)
treecdc620fa36eaf760f3c8d5748385f692a29912d8
parent83f5a394641aac1d4c133da5b1be4553dabdd4e7
Replace NOCDEV with NULL.  NOCDEV was ((void *)-1) and as inherited
from *BSD a long time ago due to the device pointer / device number
duality.  Now that the pointer and device number has been separated, we
can just use NULL to indicate no-pointer.

Replace si_refs with si_sysref.  Use SYSREF for ref-count cdev_t.  Enable
cdev_t reclamation on deletion.
22 files changed:
lib/libkvm/kvm_proc.c
sys/bus/firewire/fwdev.c
sys/conf/nfsswapkernel.c
sys/dev/misc/kbd/kbd.c
sys/dev/misc/snp/snp.c
sys/dev/raid/vinum/vinumio.c
sys/dev/sound/pcm/sndstat.c
sys/emulation/linux/linux_stats.c
sys/kern/kern_conf.c
sys/kern/kern_kinfo.c
sys/kern/kern_shutdown.c
sys/kern/vfs_conf.c
sys/kern/vfs_subr.c
sys/netproto/smb/smb_dev.c
sys/platform/pc32/i386/autoconf.c
sys/platform/vkernel/i386/autoconf.c
sys/sys/conf.h
sys/sys/disklabel.h
sys/sys/param.h
sys/sys/sysref.h
sys/vfs/nfs/nfsdiskless.h
sys/vm/vm_swap.c