From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from RCS-9000.COM (unknown [218.94.131.104]) by ozlabs.org (Postfix) with ESMTP id 8FDE5683CE for ; Tue, 27 Sep 2005 10:56:43 +1000 (EST) Date: Tue, 27 Sep 2005 08:59:45 +0800 Message-Id: <200509270859.AA76218526@RCS-9000.COM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "zhonglei" To: Subject: share memory Reply-To: zhonglei@RCS-9000.COM List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , hi: I want my driver to transfer 512byte data from kernel to user-space every 100us in the interrupt routine. Because the amount of data is large, the copy_to_user(...) is too slow to fit the request.I tried to use sys_shmat in my driver to build a share memory,but the return of the function is a kernel virtual address which I can not use in the kernel interrupt routine directory! What can I do? What function can I use to convert the kernel virtual address to kernel logic address? Or is there some other good way to handle this problem? Thanks a lot! zhonglei