[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-aio
Subject: Re: [PATCH 26/27] iov_iter: add import_kvec()
From: Jens Axboe <axboe () kernel ! dk>
Date: 2018-11-30 20:15:13
Message-ID: adf997aa-4265-9462-90b6-129b9383011e () kernel ! dk
[Download RAW message or body]
On 11/30/18 12:17 PM, Al Viro wrote:
> On Fri, Nov 30, 2018 at 09:56:45AM -0700, Jens Axboe wrote:
>> This explicitly sets up an ITER_KVEC from an iovec with kernel ranges
>> mapped.
>
>> +int import_kvec(int type, const struct kvec *kvecs, unsigned nr_segs,
>> + size_t bytes, struct iov_iter *iter)
>> +{
>> + const struct iovec *p = (const struct iovec *) kvecs;
>> +
>> + iov_iter_init_type(iter, ITER_KVEC, type, p, nr_segs, bytes);
>> + return 0;
>> +}
>
> What the hell is wrong with existing iov_iter_kvec()?
Hah, looks like I overlooked that. Not sure how anyone could look at
lib/iov_iter.c and not get lost in the beauty of it.
--
Jens Axboe
--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to majordomo@kvack.org. For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic