Re: allocating memory and align

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

 



Hello !
On Friday 14 January 2005 00:15, Pau Freixes wrote:
> typedef long align;
> union myblock{
>         typedef struct{
>             char ptr;
>         }ptr
>         algign x;
> }
This is right for static variables. But I need align of physical address, not 
virtual. Of cause I can allocate 32K and select suitable offset, but it seems 
not to be the best way.
Anyway, thanks for reply.

-- 
      Vladimir

> This is aligned to max type long, and 16 is very similar use align type
> with 16K sizeof
>
> > Does anyone know how to do it ?
> > One more question: how can I mark allocated memory region as non
> > cacheable ?
>
> I don't know

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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