From owner-svn-src-all@FreeBSD.ORG Sat Oct 16 10:11:28 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFDDF106564A; Sat, 16 Oct 2010 10:11:28 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id D2F528FC12; Sat, 16 Oct 2010 10:11:27 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=yevn+QCjI6xy199BDvBOOiO14qYvyLq62he9tTtU3M8= c=1 sm=1 a=JDvfM8UUrIYA:10 a=Q9fys5e9bTEA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=eWn195XVIN2fRthuEo0A:9 a=MdxGQbdepDADdKRm27a66468vDEA:4 a=PUjeQqilurYA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 35844157; Sat, 16 Oct 2010 12:11:26 +0200 Received-SPF: softfail receiver=mailfe02.swip.net; client-ip=188.126.198.129; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: Kostik Belousov Date: Sat, 16 Oct 2010 12:12:43 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201010161141.32116.hselasky@freebsd.org> <20101016100051.GS2392@deviant.kiev.zoral.com.ua> In-Reply-To: <20101016100051.GS2392@deviant.kiev.zoral.com.ua> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201010161212.43749.hselasky@freebsd.org> Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , Andrew Thompson Subject: Re: svn commit: r213852 - in head: lib/libusb sys/dev/usb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Oct 2010 10:11:28 -0000 On Saturday 16 October 2010 12:00:51 Kostik Belousov wrote: > > USB has some shared memory structures which are used in both user-land > > and kernel, which are not part of IOCTLs. Your approach means that > > there are two sets of IOCTL's of all kinds, one for 32-bit and one for > > 64-bit? > > For all kinds of structures that are not ABI-invariant, yes. The approach that was discussed by me and Andrew earlier this year, was to use uint64_t instead of "void *" in shared memory structures. The only disadvantage is that this will force you to recompile libusb when you update the kernel, and so we kind of put that approach aside to keep seamless upgrade compatibility. --HPS