Replace NOCDEV with NULL. NOCDEV was ((void *)-1) and as inherited
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 8 May 2007 02:31:43 +0000 (02:31 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 8 May 2007 02:31:43 +0000 (02:31 +0000)
commit028066b1d303239d97cf844f16713d5796d15451
treeb505e5ed626dad6e6e1df391b04b7345498bd7db
parent2af36526a9cb0679dc3b624d9c716a17d120e5a8
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.
24 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/disklabel32.h
sys/sys/odisklabel.h
sys/sys/param.h
sys/sys/sysref.h
sys/vfs/nfs/nfsdiskless.h
sys/vm/vm_swap.c