[openib-general] compilation platform dependencies

Roland Dreier rolandd at cisco.com
Tue Nov 1 12:10:56 PST 2005


    > I've seen use of this use of "data[0]":
    > include/rdma/ib_user_verbs.h:   __u64 driver_data[0];
    > 
    > isn't that for the same purpose?
    > Apologies if I'm mixing things up...

The driver_data[] in ib_user_verbs.h is really there to give a hint
that extra device-dependent data could follow.  Reserved members of
structs are used to pad it up to a 64-bit boundary.

I'm not sure if __u64 driver_data[0]; forces alignment to an 8-byte
boundary on i386... does it?

 - R.



More information about the general mailing list