In message <[EMAIL PROTECTED]> "David O'Brien" writes:
: On Sat, Sep 15, 2001 at 12:13:58PM -0600, Warner Losh wrote:
: > In message <[EMAIL PROTECTED]> "David O'Brien" writes:
: > : It is best to order this from largest to smallest size if you are worried
: > : about alignment holes, etc.
: > : 
: > :   int64_t d; /* 8-byte boundary */
: > :   int32_t c; /* 4-byte boundary */
: > :   int32_t f; /* 4-byte boundary */
: > :   int16_t a;
: > :   int16_t b;
: > :   int8_t  e[4];
: > 
: > unfortunately, there are many device structures that are passed around 
: > via DMA and hte like that don't let you do this...
: 
: How come?  The struct represents some [semi-]physical organization?

Because the hardware designer may have done silly things.  These are
hardware data structures.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to