DEVS - Clean up some reference counting issues
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 17 Jun 2009 19:29:13 +0000 (12:29 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 17 Jun 2009 19:29:13 +0000 (12:29 -0700)
commit493f17de55ca490230847f36c3a574ae70ecb8ab
treec4da57dd993d158cf488d10584b0748e2ebb6662
parent2102f407be5b41cdedede78004706649f812a698
DEVS - Clean up some reference counting issues

* Add dev_ops_remove_override() as the counterpart to dev_ops_add_override().

* Do not complain if ops->head.refs is non-zero when deleting ops,
  as the ops structure might be used with other unit numbers.

* Fix a bad assertion that was leading to incorrect panics when selectively
  removing dev_ops.
sys/kern/kern_conf.c
sys/kern/kern_device.c
sys/kern/subr_disk.c
sys/sys/device.h