Lines Matching refs:vma
24 struct vm_area_struct *vma; in task_mem() local
29 for_each_vma(vmi, vma) { in task_mem()
30 bytes += kobjsize(vma); in task_mem()
32 region = vma->vm_region; in task_mem()
37 size = vma->vm_end - vma->vm_start; in task_mem()
41 is_nommu_shared_mapping(vma->vm_flags)) { in task_mem()
46 slack = region->vm_end - vma->vm_end; in task_mem()
84 struct vm_area_struct *vma; in task_vsize() local
88 for_each_vma(vmi, vma) in task_vsize()
89 vsize += vma->vm_end - vma->vm_start; in task_vsize()
99 struct vm_area_struct *vma; in task_statm() local
104 for_each_vma(vmi, vma) { in task_statm()
105 size += kobjsize(vma); in task_statm()
106 region = vma->vm_region; in task_statm()
127 static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma) in nommu_vma_show() argument
129 struct mm_struct *mm = vma->vm_mm; in nommu_vma_show()
136 flags = vma->vm_flags; in nommu_vma_show()
137 file = vma->vm_file; in nommu_vma_show()
140 struct inode *inode = file_inode(vma->vm_file); in nommu_vma_show()
143 pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT; in nommu_vma_show()
149 vma->vm_start, in nommu_vma_show()
150 vma->vm_end, in nommu_vma_show()
161 } else if (mm && vma_is_initial_stack(vma)) { in nommu_vma_show()
181 struct vm_area_struct *vma = vma_next(&priv->iter); in proc_get_vma() local
183 if (vma) { in proc_get_vma()
184 *ppos = vma->vm_start; in proc_get_vma()
189 return vma; in proc_get_vma()