Re: 16-Byte aligned memory allocated in user space and then

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

 



On Wed, 05 Feb 2014 11:35:27 -0800, m silverstri said:

> If I allocated memory in user space and make it 16 byte aligned memory,
> and then pass it to kernel and setup DMA for my kernel driver,
> will my kernel driver still see the memory in 16-Byte aligned memory?
>
> The hard that my kernel driver takes to need 16-Byte aligned memory.

Hint:  Memory mapping is done in terms of pages.  Under what possible
conditions will your 16-byte aligned memory move with respect to the
beginning of the page it lives on?  (In other words, if you allocate
64 bytes that live at location 0xyyyy840, the memory map can change the
yyyy part - - but can the 840 ever change?)

Attachment: pgpxrq3XOPrhs.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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