DragonFly BSD
DragonFly commits List (threaded) for 2011-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Add breadcb() function - async I/O w/completion callback


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 10 Apr 2011 09:02:47 -0700 (PDT)

commit c1c3e862be0312d5a93d8fe2fea22f0d7d6bab7f
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sun Apr 10 08:43:12 2011 -0700

    kernel - Add breadcb() function - async I/O w/completion callback
    
    * Add breadcb().  This function performs an asynchronous read for the
      requested buffer and issues the specified callback on completion.
      If the buffer is already B_CACHE the callback is made synchronously
      and BIO_DONE is pre-set on the bio so the callback function can
      determine if I/O occured or not (and whether it must bpdone() the buf).
    
    * This function works differently from and is more flexible than the
      previously removed breada(), and will be used by HAMMER.

Summary of changes:
 sys/kern/vfs_bio.c |   35 +++++++++++++++++++++++++++++++++++
 sys/sys/buf.h      |    4 +++-
 2 files changed, 38 insertions(+), 1 deletions(-)

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]