Re: Address spaces on a i386 - Getting Confused

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 30 Mar 1999 15:25:02 +0100 (BST)


> I think unless you are willing to go into the hair the bttv driver
> does, you're going to need to have the device put it into a kernel
> buffer and then copy it into user space.

The bttv is hairy because it maps a lot of vmalloc space using scatter
gather DMA. If you need 32K for a 3D acceleration buffer then you can
handle it much more cleanly than the bttv driver. Take a look at the
sound drivers. They kmalloc a block of memory and mmap it into the user
space. Thats pretty clean

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/