[openib-general] Data structure size mismatch

Roland Dreier rolandd at cisco.com
Mon Nov 14 11:47:13 PST 2005


    Pradeep> I am trying to use copy_from_user()/copy_to_user of data
    Pradeep> structures that contains pointers.

If you are defining a new interface, then the simplest thing is not to
do that: always put pointers in a 64-bit field.

If it is an existing interface that can't be changed, then there
should be an existing compat wrapper for the system call.

 - R.



More information about the general mailing list