Re: mmap question (2.2.12)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 30 Oct 1999 13:53:02 +0100 (BST)


> I've read here previously that bttv.c is a good example of how to do
> this. I'm assigning the mmapped memory to the tulip chips, which PCI
> Bus Master's the actual frame data into it.

BTTV is probably overkill unless you are using very large buffers.

> I didn't see any obvious limitation on size in the source (or through
> man mmap()), but I am planning on doing ~30Mb using this. Is that a
> problem?

The simple way its generally about 64K. The bttv approach its basically
infinite providing you can do scatter gather DMA or land your packets
suitably (eg on 2K boundaries 2 per page)

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/