From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 20 Mar 2002 04:48:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 20 Mar 2002 04:48:30 -0500 Received: from [159.226.4.246] ([159.226.4.246]:19985 "EHLO intec.iscas.ac.cn") by vger.kernel.org with ESMTP id ; Wed, 20 Mar 2002 04:48:15 -0500 Message-ID: <000701c1cff4$5beb6d50$17c0c0c0@shu> From: "Guoqiang Shu" To: Subject: static buffer in module Date: Wed, 20 Mar 2002 17:47:55 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mangalore.zipworld.com.au id AAA13536 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