git: kernel -- Add O_FRNONBLOCKING, to allow reads which do not

看板DFBSD_commit作者時間15年前 (2011/02/24 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 638e2d2dbe6f53c8cedaba64a0c882abf747f667 Author: Venkatesh Srinivas <me@endeavour.zapto.org> Date: Wed Feb 23 07:12:20 2011 -0800 kernel -- Add O_FRNONBLOCKING, to allow reads which do not block on disk accesses. Using extpread() or extpreadv() with O_FRNONBLOCKING on HAMMER file systems now allows reads to return EWOULDBLOCK when the requested data is not in the buffer cache. Summary of changes: sys/kern/vfs_vnops.c | 4 +++- sys/sys/fcntl.h | 3 ++- sys/sys/vnode.h | 1 + sys/vfs/hammer/hammer_vnops.c | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/638e2d2dbe6f53c8cedaba64a0c882abf747f667 -- DragonFly BSD source repository
文章代碼(AID): #1DPKjl49 (DFBSD_commit)