Advice regarding memory allocation/sharing

From: ZCane, Ed (Test Purposes) (
Date: Mon Jun 09 2003 - 06:50:56 EST

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
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

Any advice appreciated, dont wish to take too much of your time!

Best regards,

begin 666 RMRL-Disclaimer.txt
M:65M96YS($AO=7-E+"!/;&1B=7)Y+"!"<F%C:VYE;&PL( T*0F5R:W-H:7)E
;<F%C='5A;" -#0T*<F5L871I;VYS:&EP+@T*

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:20 EST