On Fri, 2004-03-05 at 19:25, Ed L Cashin wrote: > Hi. I read somewhere that seemed authoritative (unfortunately I > forget where) that you could use the rmap stuff to get both the > mm_struct pointer and the task_struct pointer associated with a PTE > given that PTE. > > I see in mm/rmap.c:try_to_unmap_one that you can use ptep_to_mm to get > the mm. I think it's pretty neat: the mm pointer is hidden in the > mapping field of the page struct describing the page where the pte > lives. there is a fundamental issue wrt task_struct: there can be *many* of those for any given PTE, since tasks can (and do in the case of threads) share the mm.
Attachment:
signature.asc
Description: This is a digitally signed message part