Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Oct 2010 12:12:43 +0200
From:      Hans Petter Selasky <hselasky@freebsd.org>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, Andrew Thompson <thompsa@freebsd.org>
Subject:   Re: svn commit: r213852 - in head: lib/libusb sys/dev/usb
Message-ID:  <201010161212.43749.hselasky@freebsd.org>
In-Reply-To: <20101016100051.GS2392@deviant.kiev.zoral.com.ua>
References:  <201010161141.32116.hselasky@freebsd.org> <20101016100051.GS2392@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010161212.43749.hselasky>