[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49419EA7.6050308@redhat.com>
Date: Fri, 12 Dec 2008 00:13:43 +0100
From: Gerd Hoffmann <kraxel@...hat.com>
To: lkml - Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [RFC/PATCH] Add preadv and pwritev system calls.
Hi,
The attached patch adds preadv and pwritev system calls. These syscalls
are a pretty straightforward combination of pread and readv (same for
write). They are quite useful for doing vectored I/O in threaded
applications. Using lseek+readv instead opens race windows you'll have
to plug with locking.
Other systems have such system calls too, for example NetBSD, check
here: http://www.daemon-systems.org/man/preadv.2.html
The patch sports the actual system call implementation and the windup in
the x86 system call tables. Other archs are TBD.
Comments? Reviews? Suggestions? Flames?
cheers,
Gerd
View attachment "preadv.diff" of type "text/plain" (4266 bytes)
Powered by blists - more mailing lists