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

看板DFBSD_commit作者時間14年前 (2011/05/17 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1DqRGGqz (DFBSD_commit)