lkml.org 
[lkml]   [1999]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: is make_pages_present() what I was looking for?
On Thu, 23 Dec 1999, Tigran Aivazian wrote:
> if (make_pages_present(uaddr, uaddr + count))
> return -EFAULT;
> lock a spinlock
> while (walking linked list) {
> examine the data and, if needed __copy_to_user(uaddr, kaddr, size)
> }
> unlock a spinlock

I of course was assuming the process context and that there is sufficient
locking to prevent other CLONE_VM'd threads from "mucking about" with
current's mm.

Tigran.


-
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:55    [W:0.038 / U:1.912 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site