Re: Process VM Addr to Kernel VM Addr at Interrupt Time.

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 28 Apr 1999 18:25:29 +0100 (BST)


> Can you explain why the original proposal would not work if he:
>
> mlock() on application buffer
> mapped the memory into kernel space
>
> >From mlock() man page this seems like it would be safe...

Suppose the page is shared by another process. You need to do page faulting
and copy on write even if you use mlock and make sure all the pages are
present.

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