git: kernel - Add breadcb() function - async I/O w/completion callback
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Apr 10 09:02:58 PDT 2011
commit c1c3e862be0312d5a93d8fe2fea22f0d7d6bab7f
Author: Matthew Dillon <dillon at 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
More information about the Commits
mailing list