svn commit: r213852 - in head: lib/libusb sys/dev/usb
Hans Petter Selasky
hselasky at freebsd.org
Sat Oct 16 10:11:28 UTC 2010
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
More information about the svn-src-all
mailing list