Re: allocating aligned memory

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

 



On Sun, Feb 15, 2009 at 4:41 PM, Ramagudi Naziir <naziirr@xxxxxxxxx> wrote:
> hello everyone
>
> i need to allocate memory aligned 16 bytes.
>
> how can i do that ?
>
> can I use kmalloc for that ?

Uhm, kmalloc use slab so I don't think it will be aligned. My wild
guess is you have use alloc_page(s) or use _aligned_ (or _align_?...
not sure) gcc builtin directive

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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