lkml.org 
[lkml]   [1999]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: vremap and memcpy_to_fs in 2.2.x?
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.035 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site