From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bw0-f212.google.com (mail-bw0-f212.google.com [209.85.218.212]) by ozlabs.org (Postfix) with ESMTP id EFA47B7BC6 for ; Wed, 28 Oct 2009 07:13:20 +1100 (EST) Received: by bwz4 with SMTP id 4so237688bwz.2 for ; Tue, 27 Oct 2009 13:13:17 -0700 (PDT) Message-ID: <4AE7545F.80805@billgatliff.com> Date: Tue, 27 Oct 2009 15:13:19 -0500 From: Bill Gatliff MIME-Version: 1.0 To: Jonathan Haws Subject: Re: Accessing flash directly from User Space References: In-Reply-To: Content-Type: text/plain; charset=us-ascii Cc: "linuxppc-dev@lists.ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Jonathan Haws wrote: > > How can I get that pointer? Unfortunately I cannot simply use the address of the flash. Is there some magical function call that gives me access to that portion of the memory space? > $ man 2 mmap You want MAP_SHARED and O_SYNC. b.g. -- Bill Gatliff bgat@billgatliff.com