Re: locking user memory and kiobuf

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 8 Nov 1999 16:26:28 +0000 (GMT)


> kiobuf sounds perfect for a problem we have. Currently I use mmap() to map
> pages from __get_free_pages() into user space for dma. This is not totally
> satisfactory, tho, in part because the resulting group of pages is not mapped
> contiguously into kernel.

If you have a situation where that is hard to handle you can vmalloc a block
of memory then map that into user space. drivers/char/bttv.c does it. Its
ugly and bttv needs to switch to kiovecs in 2.3.x if I get time.

> Since we're going to ship a driver to customers, we can't use kiobuf unless
> it is standard part of the kernel.

Whose kernel 8)

> So, has kiobuf been accepted into the kernel proper or will it be a patch
> for the forseeable future?

Its in several vendor shipped kernels and in 2.2ac but not in 2.2 vanilla and
since its not a bug fix isnt likely to be

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