DEVFS - add make_autoclone_dev to take of clone initializing for devs
authorAlex Hornung <ahornung@gmail.com>
Wed, 5 Aug 2009 19:25:42 +0000 (20:25 +0100)
committerAlex Hornung <ahornung@gmail.com>
Wed, 5 Aug 2009 20:27:00 +0000 (21:27 +0100)
commitb96f378285b11845945ab3a651dc0c03e3ad84a3
tree4b5743919a104d40430495136eb4c16c6ad34249
parent7cbab9dafa4f803b27a7ff3273e0ce988b0aa8be
DEVFS - add make_autoclone_dev to take of clone initializing for devs

by creating the device with the right miinor, initing the clone bitmap
and registering the clone handler. Also fix up all users of cloning
to use this new API.
sys/bus/cam/scsi/scsi_target.c
sys/dev/misc/snp/snp.c
sys/kern/kern_conf.c
sys/net/bpf.c
sys/net/tun/if_tun.c
sys/netproto/smb/smb_dev.c
sys/sys/device.h