static buffer in module

From: Guoqiang Shu (guoqiang@itechs.iscas.ac.cn)
Date: Wed Mar 20 2002 - 04:47:55 EST


hello,

     when I declare a buffer statically in a module ( char buf[1024]), and
 later use __pa(buf) and virt_to_phys(buf),I get an address beyond the physical
 memory bound. how to get the real physical address of such buffers if I wanna
 mmap them to user space?
     thank you very much .

   any instructions pls. fwd to my address.

 George .Shu
 
:.˛mkabzwmb˛mbz_^nrzh&zzޗ++zfh~iz_j:+v)ߣmSy杶ii



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:21 EST