Re: sizeof problem in kernel modules

From: Horst von Brand (vonbrand@inf.utfsm.cl)
Date: Mon Jun 25 2001 - 16:25:40 EST


Alan Shutko <ats@acm.org> said:
> 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.

It just prohibits separating bytes, not subobjects. I.e., everything can be
handled as an array of bytes (of the appropiate length, as given by
sizeof())

-- 
Dr. Horst H. von Brand                Usuario #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



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