Lines Matching refs:vma
23 struct vm_area_struct *vma; in task_mem() local
30 vma = rb_entry(p, struct vm_area_struct, vm_rb); in task_mem()
32 bytes += kobjsize(vma); in task_mem()
34 region = vma->vm_region; in task_mem()
39 size = vma->vm_end - vma->vm_start; in task_mem()
43 vma->vm_flags & VM_MAYSHARE) { in task_mem()
48 slack = region->vm_end - vma->vm_end; in task_mem()
85 struct vm_area_struct *vma; in task_vsize() local
91 vma = rb_entry(p, struct vm_area_struct, vm_rb); in task_vsize()
92 vsize += vma->vm_end - vma->vm_start; in task_vsize()
102 struct vm_area_struct *vma; in task_statm() local
109 vma = rb_entry(p, struct vm_area_struct, vm_rb); in task_statm()
110 size += kobjsize(vma); in task_statm()
111 region = vma->vm_region; in task_statm()
129 static int is_stack(struct vm_area_struct *vma) in is_stack() argument
131 struct mm_struct *mm = vma->vm_mm; in is_stack()
138 return vma->vm_start <= mm->start_stack && in is_stack()
139 vma->vm_end >= mm->start_stack; in is_stack()
145 static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma) in nommu_vma_show() argument
147 struct mm_struct *mm = vma->vm_mm; in nommu_vma_show()
154 flags = vma->vm_flags; in nommu_vma_show()
155 file = vma->vm_file; in nommu_vma_show()
158 struct inode *inode = file_inode(vma->vm_file); in nommu_vma_show()
161 pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT; in nommu_vma_show()
167 vma->vm_start, in nommu_vma_show()
168 vma->vm_end, in nommu_vma_show()
179 } else if (mm && is_stack(vma)) { in nommu_vma_show()