Re: 4 byte mem alignment

From: David S. Miller (davem@redhat.com)
Date: Sun Sep 29 2002 - 01:23:26 EST


   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/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:39 EST