From owner-freebsd-arch@FreeBSD.ORG Thu Oct 7 17:02:43 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7FDE1065672 for ; Thu, 7 Oct 2010 17:02:43 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6AFE98FC0A for ; Thu, 7 Oct 2010 17:02:43 +0000 (UTC) Received: by iwn8 with SMTP id 8so81806iwn.13 for ; Thu, 07 Oct 2010 10:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=QZAIM9lt4/EcxoeStAz63PJuQ4zztgLeqhqb47xUK3g=; b=XowexRzzQ8csGvth5VAQj4G+Bgq4AVNSzkzrW0MvbB1pkaPxk976i1vncrxb3nbGsH eIXti+Z6F5xZieoe2oPEQlY60OVL4kAtNUbQtezGBd1G5CAyVXFE8pc203lEzXWjWFFl Es04RzChJyQDAa4JgzSjydkuYfzCu45r6O3ak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=QPHEtVmu+r2wol7URIwOe91nbt4chbK9A5u1rm/aaAebz+cczMCzuuVRg46f+YxIeJ QnbBUEtdJnF6w83PYWXpiKOl9OrI3s9ttk0xHH4FI7z5edoAIxIu2eTcrPQnmZv5U6/3 IkTnpVuaD/0qPj6of4fesebjbxJFXifCoMy8o= MIME-Version: 1.0 Received: by 10.231.10.141 with SMTP id p13mr1118446ibp.183.1286470962548; Thu, 07 Oct 2010 10:02:42 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.231.142.76 with HTTP; Thu, 7 Oct 2010 10:02:42 -0700 (PDT) In-Reply-To: <20101007161338.GK2392@deviant.kiev.zoral.com.ua> References: <20101007161338.GK2392@deviant.kiev.zoral.com.ua> Date: Thu, 7 Oct 2010 10:02:42 -0700 X-Google-Sender-Auth: dxHQoiJ4o6V7DAWzpHYHInQr4-c Message-ID: From: mdf@FreeBSD.org To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Arch Subject: Re: freebsd32_ioctl.c X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 17:02:43 -0000 >>=A0Should we >> just be adding ioctl argument munging as we go along and not worry >> about the size? =A0Or is there simple way to keep the munging inside the >> driver? =A0Perhaps my making the driver's ioctl look something like: > I think that in-driver variant is the best. Okay, I am trying this approach. > =A0 =A0 =A0 =A0if (SV_CURPROC_FLAG(SV_ILP32)) That's what I get for doing development on stable/7. I miss out on the existence of such handy things. Thanks! matthew