static buffer in module

Guoqiang Shu (guoqiang@itechs.iscas.ac.cn)
Wed, 20 Mar 2002 17:47:55 +0800


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