diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-07 02:02:56 +0100 |
---|---|---|
committer | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-12-07 02:02:56 +0100 |
commit | 63af9d499fb578b374a66c57d0955fc522a1f5c1 (patch) | |
tree | 3a660c72996f409a8f2fd3d3a0883d0bc852cb53 | |
parent | b91c092d38e5968a71003106cfa0194e6e1df989 (diff) | |
download | ldd3-63af9d499fb578b374a66c57d0955fc522a1f5c1.tar.gz |
scullv: update scullv_aio_[read | write] handlers
-rw-r--r-- | scullv/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scullv/main.c b/scullv/main.c index a05095d..6666857 100644 --- a/scullv/main.c +++ b/scullv/main.c @@ -450,16 +450,16 @@ static int scullv_defer_op(int write, struct kiocb *iocb, const struct iovec *io } -static ssize_t scullv_aio_read(struct kiocb *iocb, char __user *buf, size_t count, - loff_t pos) +static ssize_t scullv_aio_read(struct kiocb *iocb, const struct iovec *iovec, + unsigned long nr_segs, loff_t pos) { - return scullv_defer_op(0, iocb, buf, count, pos); + return scullv_defer_op(0, iocb, iovec, nr_segs, pos); } -static ssize_t scullv_aio_write(struct kiocb *iocb, const char __user *buf, - size_t count, loff_t pos) +static ssize_t scullv_aio_write(struct kiocb *iocb, const struct iovec *iovec, + unsigned long nr_segs, loff_t pos) { - return scullv_defer_op(1, iocb, (char __user *) buf, count, pos); + return scullv_defer_op(1, iocb, iovec, nr_segs, pos); } |