All of lore.kernel.org
 help / color / mirror / Atom feed
* Query Regarding memory alignment /access
@ 2016-02-01  9:47 Vishwas Srivastava
  0 siblings, 0 replies; only message in thread
From: Vishwas Srivastava @ 2016-02-01  9:47 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

            I have  2 questions regarding memory access/alignment
1: can aligned/unaligned virtual address could translate to
unaligned/aligned physical address ? or
 aligned virtual --- > aligned phy and unaligned virtual --- > unaligned
phy ??
2: Since the cpu access the memory in word size, for a large buffer, (say
size N bytes where N > wordsize) isn't it sufficient for buffer to be
properly aligned if its address % WORD_SIZE == 0? rather than address % N
== 0  check?? since cpu, anyways will not access more than word size at a
time so any address which is divisible by wordsize is by default properly
aligned?

Please share your inputs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160201/301adbef/attachment.html 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-01  9:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-01  9:47 Query Regarding memory alignment /access Vishwas Srivastava

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.