From: Ian Campbell Subject: Re: [PATCH, RFC 1/4] linux: add new (replacement) mmap-batch ioctl Date: Mon, 11 Jan 2010 15:12:57 +0000 Message-ID: <1263222777.16526.1512.camel@zakaz.uk.xensource.com> References: <4B4B48A0020000780002912C@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B4B48A0020000780002912C@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2010-01-11 at 14:49 +0000, Jan Beulich wrote: > #define IOCTL_PRIVCMD_MMAPBATCH \ > _IOC(_IOC_NONE, 'P', 3, sizeof(privcmd_mmapbatch_t)) > +#define IOCTL_PRIVCMD_MMAP_BATCH \ > + _IOC(_IOC_NONE, 'P', 4, sizeof(privcmd_mmap_batch_t)) Distinguishing the old vs new ioctl by only a _ in the middle seems a bit horrid. MMAPBATCH2 would at least be less prone to confusion... Why not take the opportunity to make the ioctl (and hypercall?) interface 32 vs 64 agnostic by unconditionally using 64 bit sizes? Ian.