git: kernel - Allow multiple opens on /dev/udev

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 24 18:33:52 PDT 2012


commit 9b881e96ac5932621a87070dfdb0740557bd1fce
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 24 18:31:53 2012 -0700

    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.

Summary of changes:
 sys/kern/kern_udev.c |  307 +++++++++++++++++++++++++++++++------------------
 1 files changed, 194 insertions(+), 113 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9b881e96ac5932621a87070dfdb0740557bd1fce


-- 
DragonFly BSD source repository


More information about the Commits mailing list