From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263493AbTFILhi (ORCPT ); Mon, 9 Jun 2003 07:37:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263542AbTFILhi (ORCPT ); Mon, 9 Jun 2003 07:37:38 -0400 Received: from rsys000a.roke.co.uk ([193.118.201.102]:30224 "HELO rsys000a.roke.co.uk") by vger.kernel.org with SMTP id S263493AbTFILha (ORCPT ); Mon, 9 Jun 2003 07:37:30 -0400 From: "ZCane, Ed (Test Purposes)" To: linux-kernel@vger.kernel.org Message-ID: <006d01c32e7d$63666330$d8c176c1@roke.co.uk> Subject: Advice regarding memory allocation/sharing Date: Mon, 9 Jun 2003 12:50:56 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello all, I appreciate this is probably trivial to you experts, but would be very grateful if you could spare a minute to tell me if I'm on the right tracks, or barking up the wrong tree! I'm trying to write a system to capture large amounts of data from a Gb Ethernet card. Using Linux, Kernel Version 2.4. I've done a bit of reading, and this is how I propose to do it. Allocate a large block (500mb) of contiguous physical memory, at boot time, using bootmem. Share this memory with user-space processess, using memmap and shared memory IPC. Modify our Ethernet driver so that it DMA's into my block of memory. I'll use semaphores, and split the memory into separate chunks, and make it so it rotates in a ring buffer style, I can handle all that stuff, just wanted to make sure I was on the right tracks with the design/concept of the memory. Any advice appreciated, dont wish to take too much of your time! Best regards, Ed begin 666 RMRL-Disclaimer.txt M4F5G:7-T97)E9"!/9F9I8V4Z(%)O:V4@36%N;W(@4F5S96%R8V@@3'1D+"!3 M:65M96YS($AO=7-E+"!/;&1B=7)Y+"!"2!W:71H;W5T('!E