Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jaya Kumar <jayakumar.lkml@...>
Cc: Andrew Morton <akpm@...>, <stefani@...>, <linux-kernel@...>, David Howells <dhowells@...>, <linux-mm@...>, Hugh Dickins <hugh@...>
Date: Tuesday, October 30, 2007 - 5:56 am

On Mon, 2007-10-29 at 21:22 -0400, Jaya Kumar wrote:
n

Yeah, page->index is used along with vma->vmpgoff and vma->vm_start to
determine the address of the page in the given vma:

  address =3D vma->vm_start + ((page->index - vma->vm_pgoff) << PAGE_SHIFT)=
;

and from that address the pte can be found by walking the vma->vm_mm
page tables.

So page->index does what you want it to, identify which part of the
framebuffer this particular page belongs to.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Stefani Seibold, (Mon Oct 22, 10:40 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Andrew Morton, (Mon Oct 29, 3:40 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 1:01 pm)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 2:17 pm)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 6:16 pm)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 5:56 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 9:25 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Hugh Dickins, (Tue Oct 30, 11:47 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 11:51 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Stefani Seibold, (Tue Oct 30, 6:49 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Hugh Dickins, (Tue Oct 30, 8:39 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Tue Oct 30, 9:12 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 6:11 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Peter Zijlstra, (Mon Oct 29, 8:35 am)
Re: vm_ops.page_mkwrite() fails with vmalloc on 2.6.23, Nick Piggin, (Mon Oct 29, 10:28 am)