Re: vremap and memcpy_to_fs in 2.2.x?

Richard Henderson (rth@twiddle.net)
Wed, 7 Apr 1999 16:23:29 -0700


On Thu, Apr 08, 1999 at 01:11:37AM +0200, Jamie Lokier wrote:
> 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.

Presumably because the process is root and was good enough to
mlock everything down?

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

Well, the invariant that all of physical memory is mapped somewhere
in kernel space is kept. So if you grovel through ptes and do the
right phys_to_virt translation, of course it will work.

r~

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