Re: block layer sg, bsg

From: Jeff Garzik
Date: Wed Aug 04 2004 - 10:57:53 EST


On Wed, Aug 04, 2004 at 08:44:29AM -0700, David S. Miller wrote:
> Or use a more portable well-defined type which does not change
> size nor layout between 32-bit and 64-bit environments.

IMO if this (the above) is not done, the interface needs work.

For interfaces that replace ioctl(2) with read(2)/write(2), for passing
data structures to/from the kernel, Al has rightly suggested that these
structures be not only fixed size (as David described above), but also
fixed-endian.

Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/