[openib-general] [PATCH][0/19] kDAPL: More cleanups in dat.h

Roland Dreier roland at topspin.com
Tue May 17 20:31:02 PDT 2005


    James> DAPL was using the uintptr_t type when casting to an
    James> integer type from a pointer type. Is there another type
    James> that the kernel uses for this purpose? I know that long is
    James> typically used, but according to Harbison and Stelle this
    James> is not guaranteed to be correct.

The assumption that pointers can be safely cast to and from unsigned
long is used all over the Linux kernel.  In other words, use "unsigned
long" instead of "uintptr_t".

 - R.



More information about the general mailing list