git: kernel - Auto-initiate message stream for udev on read()

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Oct 24 19:14:21 PDT 2012


commit cd6f4f79801c968685a3e0069637790bc2fa4994
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Oct 24 19:12:50 2012 -0700

    kernel - Auto-initiate message stream for udev on read()
    
    * Ensure the device is initiated when read() is issued for /dev/udev,
      otherwise no events will be queued.
    
      This allows a simple cat /dev/udev to return the XML stream without
      having to issue any ioctls.
    
    * Reorder the devfs scan and initiation to close a race where an event could
      be lost.

Summary of changes:
 sys/kern/kern_udev.c |   35 ++++++++++++++++++++++++++++-------
 1 files changed, 28 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cd6f4f79801c968685a3e0069637790bc2fa4994


-- 
DragonFly BSD source repository


More information about the Commits mailing list