devfs - Let devfs assume degenerate knotes when a device goes away
authorSamuel J. Greear <sjg@thesjg.com>
Sat, 14 Aug 2010 14:41:35 +0000 (14:41 +0000)
committerSamuel J. Greear <sjg@thesjg.com>
Sat, 11 Sep 2010 03:30:58 +0000 (03:30 +0000)
commit3bd9e88a039ac05fac0e0c8c720362d970ba0e67
treeadfd4c50e8b99fce2d132f24e4ef2f9e3998a1a8
parente6318d168ae70dc7989315890b51cd182ceeb103
devfs - Let devfs assume degenerate knotes when a device goes away

* Some devices can disappear while knotes are still active on the klist
  embedded in the devices softc or etc., create a mechanism to allow devfs
  to assume these degenerate knotes.

* Convert ums to this new way of things

* This does not actually fix the reported panic (where X is holding a mouse
  open across detach), panic is moved into the new devfs handler.

* Other devices which could be detached and support the kq interface need to
  use this interface as well (umass, ...)

Reported-by: Rumko
sys/dev/usbmisc/ums/ums.c
sys/sys/conf.h
sys/sys/devfs.h
sys/vfs/devfs/devfs_core.c