Re: is make_pages_present() what I was looking for?

Tigran Aivazian (tigran@sco.COM)
Thu, 23 Dec 1999 10:29:20 +0000 (GMT)


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/