Subject: const iov_base (was Re: letting userland issue FUA writes)
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Eric Haszlakiewicz <>
List: tech-kern
Date: 03/20/2006 10:09:41
On Mon, Mar 20, 2006 at 02:56:34AM -0500, der Mouse wrote:
> If you're going to do this, _please_ do a const-poisoning-friendly
> version!  Off the cuff, I'd suggest something like
> 	struct iovec_f {
> 	  union {
> 	    void *iovu_base_r;
> 	    const void *iovu_base_w;
> 	  } iov_u;
> #define iov_base_r iov_u.iovu_base_r
> #define iov_base_w iov_u.iovu_base_w
#define iov_base iov_u.iovu_base_r
and you could make this change right now, without changing the api for
existing programs.

I'd say this is an independant change that could be made regardless of
the writex/whatever stuff.