Re: allocating aligned memory

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

 



sorry  my mistake.....should be 0xF instead :-).

On Wed, Feb 18, 2009 at 1:31 PM, Pei Lin <telent997@xxxxxxxxx> wrote:
2009/2/17 Peter Teoh <htmldeveloper@xxxxxxxxx>:
> i think just & 0x1F, after allocating from kmalloc(), but must ensure that

&1F, is that right? 0x1F & 0x1F = 0x1F = 31
> the new address have sufficient space after alignment.
>
> correct?
>
> On Sun, Feb 15, 2009 at 5: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 ?
>>
>> thank you in advance
>> naziir
>>
>> --
>> To unsubscribe from this list: send an email with
>> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
>> Please read the FAQ at http://kernelnewbies.org/FAQ
>>
>
>
>
> --
> Regards,
> Peter Teoh
>



--
Regards,
Peter Teoh

[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