Hi there,
Is there a single blessed way to define packed structures
for use in drivers? I suspect that using "#pragma pack(1)"
will lead to alignment errors in non-Intel architectures.
Should char arrays be used for all multi-byte elements to
avoid alignment problems?
And is it OK to rely on specially crafted structures, like
"struct fs" in /sys/ufs/ffs/fs.h where multi-byte elements
are pre-aligned by the structure's design, being contiguous?
--
Yar
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message