[openib-general] compilation platform dependencies

Christoph Hellwig hch at lst.de
Thu Nov 3 09:12:10 PST 2005


On Thu, Nov 03, 2005 at 08:52:52AM -0800, Grant Grundler wrote:
> > I'm not sure if __u64 driver_data[0]; forces alignment to an 8-byte
> > boundary on i386... does it?
> 
> I'm now convinced it doesn't on x86.
> See output below.

Yes, alignment rules for x86 are different for every other architecture
in that respect.  It causes a lot of problems with ioctl translations
for x86 binaries on ia64/x86_64.

For the private data I'd suggest you copy the network driver layer
approach, see alloc_netdev and netdev_priv for details.




More information about the general mailing list