Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 1 Dec 2001 20:53:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 1 Dec 2001 20:52:55 -0500 Received: from host154.207-175-42.redhat.com ([207.175.42.154]:29273 "EHLO lacrosse.corp.redhat.com") by vger.kernel.org with ESMTP id ; Sat, 1 Dec 2001 20:52:49 -0500 Date: Sat, 1 Dec 2001 20:52:48 -0500 From: Benjamin LaHaise To: Alan Cox Cc: Maciej Zenczykowski , linux-kernel@vger.kernel.org Subject: Re: [OT] Wrapping memory. Message-ID: <20011201205247.B31466@redhat.com> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from alan@lxorguk.ukuu.org.uk on Sat, Dec 01, 2001 at 10:24:58PM +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 01, 2001 at 10:24:58PM +0000, Alan Cox wrote: > > Is this at all possible? If so, how would I do this in user space (and > > could it be done without root priv?)? > > 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... -ben - 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/