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

ý:.žË›±Êâmçë¢kaŠÉb²ßìzwm…éb�ïîžË›±Êâmébžìÿ‘êçz_âžØ^n‡r¡ö¦zË�ëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿï�êÿ‘êçz_è®æj:+v‰¨þ)ߣømšSåy«­æ�¶…­†ÛiÿÿðÃí»è®å’i