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

Tigran Aivazian (tigran@sco.COM)
Fri, 24 Dec 1999 11:13:18 +0000 (GMT)


ignore my question below - looks like I was reinventing not one but two
wheels - one called kmap bounce buffers and another called mlock :)

On Thu, 23 Dec 1999, Tigran Aivazian wrote:

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