4 byte mem alignment

Arvind Gopalan (arvind_gopalan@yahoo.com)
Sat, 28 Sep 2002 23:26:46 -0700 (PDT)


I wished someone to confirm the following: Is it a
requirement for the user space buffer that is provided
to the recvfrom() socket call, be 4 byte aligned?.
Note that sockets are raw sockets (PF_PACKET type). I
am running linux 2.4.18-10 on a dual xeon P4 (x86)
box. At the lowest level, i think this translates to
how strong the requirements are for copy_to_user().
does it fault to byte-by-byte mode gracefully when
given a non-4byte aligned buffer?.

Please include me in all replies, since i'm not
subscribed to the list

Thanks
-Arvind

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com
-
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/