Re: vremap and memcpy_to_fs in 2.2.x?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 8 Apr 1999 01:33:21 +0100 (BST)


> I have a device driver (which I did not write) which looks up pte
> translations so it can access user space memory directly. The
> assumption than the memory is locked is safe.

Is it also copy on write correctly, locked correctly and other things though ?

> To play nice with those nice m68k and sparc64 systems, is there an
> equivalent that the device driver should be using?

Page table walking seems to be portable. It should be. Mapping userspace
that way is playing with fire though. The bttv driver does the same page
table stuff but on kernel mapped space and its mmap() operation maps a kernel
buffer into the application

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