Skip to contentSkip to conversation

static buffer in module

DISCUSSION Guoqiang Shu 1 participant 1 message Mar 20, 2002

lore
Share & tools
lore
#0 lore raw

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珉a娚b策靭wm呴b濓顬藳笔鈓閎烄�戧鐉_鉃豝n噐■�侂h櫒璀�&{鄗夸z罐楘+€�+zf"穐殘啳嗃i��飦�戧鐉_璁鎗:+v墾�)撸鴐歋鍄�澏�瓎踚��鹈砘璁鍜i