Re: Reg - Unaligned buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "sathish" == SATHISH J <sathish.j@tatainfotech.com> writes:

sathish> Hi all,

sathish> What is an un-aligned buffer ? When do we get un-aligned buffers ?

it is easier what is an aligned buffer.  Some hardware needs their
buffers to be aligned in a word boundary, in a 64bytes bondary,
128bytes, a page boundary, etc that means that sometimes we have to
copy that data from one buffer that is unaligned to other that has the
right alignement.  That happens for instance for DMA, that you have
requeriments of that kind of things.  For that hardware we need to
move the buffers.  Some archs have problems accesing int/longs that
are not word aligned, i.e. its address is not a multiple of its size,
for that archs it is better/faster to copy the buffer to one aligned buffer
than to access the unaligned buffer.

Later, Juan.



-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux