Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 2 Dec 2001 05:31:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 2 Dec 2001 05:30:54 -0500 Received: from smtpde02.sap-ag.de ([194.39.131.53]:33462 "EHLO smtpde02.sap-ag.de") by vger.kernel.org with ESMTP id ; Sun, 2 Dec 2001 05:30:37 -0500 X-Gnus-Agent-Meta-Information: mail nil From: Christoph Rohland To: Benjamin LaHaise Cc: Alan Cox , Maciej Zenczykowski , linux-kernel@vger.kernel.org Subject: Re: [OT] Wrapping memory. In-Reply-To: <20011201205247.B31466@redhat.com> Organisation: SAP LinuxLab In-Reply-To: <20011201205247.B31466@redhat.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) Date: 02 Dec 2001 11:24:56 +0100 Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SAP: out X-SAP: out X-SAP: out X-SAP: out Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Benjamin, On Sat, 1 Dec 2001, Benjamin LaHaise wrote: >> mmap will do what you need. Create a 60K object on disk and mmap it >> at the base address and then 60K further on for 4K. > > And try to use /dev/shm/ first... If you can live with glibc >= 2.2 and kernel 2.4 you should use shm_open, shm_unlink for object creation and deletion. Greetings Christoph - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/