Re: 4 byte mem alignment

David S. Miller (davem@redhat.com)
Sat, 28 Sep 2002 23:23:26 -0700 (PDT)


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

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?.

The x86 processor handles unaligned memory accesses in hw.

On any platform, copy_to_user() must handle any user and kernel buffer
alignment.
-
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/