Re: [PATCH v2] Add preadv and pwritev system calls.

Gerd Hoffmann
2008-12-12T20:02:56Z

Arnd Bergmann wrote:
> Aside from that, have you considered doing something even more flexible,
> like this?
>
> struct piovec {
> void __user *iov_base;
> __kernel_size_t iov_len;
> __kernel_loff_t pos;
> };
>
> asmlinkage ssize_t sys_pwritev(unsigned long fd,
> const struct piovec __user *vec,
> unsigned long vlen);

There is little point in doing so because I *really* want the
user-visible API being identical to the existing ones in the *BSD
family. Anything else is just a PITA for the applications using this.

cheers,
Gerd