kernel - Allow multiple opens on /dev/udev
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 25 Oct 2012 01:31:53 +0000 (18:31 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 25 Oct 2012 01:31:53 +0000 (18:31 -0700)
commit9b881e96ac5932621a87070dfdb0740557bd1fce
tree37f8d8eaa6e8460007e21ae675a5cd608ea580ff
parent1de3960396be14736ccbdd7071801467c0ca1bee
kernel - Allow multiple opens on /dev/udev

* Implement as an auto-clone device

* Refactor most of the code to use a new queueing mechanic.  There is a single
  queue and multiple markers pointing into the queue (one for each initiated
  open'd device).

* Events broadcast to all initiated readers.  We use a single-queue /
  multiple-marker model.  The event structure is only deleted once all markers
  have iterated past it.
sys/kern/kern_udev.c