Re: sizeof problem in kernel modules

From: Alan Shutko (
Date: Mon Jun 25 2001 - 08:59:32 EST

Alan Shutko <> writes:

> You can look at other things too... you can memcpy structures, pass
> them into functions, call sizeof, put them in arrays... it _is_ a
> physical representation.

One more tidbit: ISO/IEC 9899:1990 3.14

  3.14 object: A region of data storage in the execution environment,
    the contents of which can represent values. Except for
    bit-fields, objects are composed of contiguous sequences of one or
    more bytes, the number, order and encoding of which are either
    explicitely specified or implementation-defined.

This would specifically prohibit separating any part of a structure
from the rest.

Alan Shutko <> - In a variety of flavors!
A king's castle is his home.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 30 2001 - 21:00:11 EST