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 vma->vm_flags & VM_MAYSHARE) { 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()
124 static int is_stack(struct vm_area_struct *vma) in is_stack() argument
126 struct mm_struct *mm = vma->vm_mm; in is_stack()
133 return vma->vm_start <= mm->start_stack && in is_stack()
134 vma->vm_end >= mm->start_stack; in is_stack()
140 static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma) in nommu_vma_show() argument
142 struct mm_struct *mm = vma->vm_mm; in nommu_vma_show()
149 flags = vma->vm_flags; in nommu_vma_show()
150 file = vma->vm_file; in nommu_vma_show()
153 struct inode *inode = file_inode(vma->vm_file); in nommu_vma_show()
156 pgoff = (loff_t)vma->vm_pgoff << PAGE_SHIFT; in nommu_vma_show()
162 vma->vm_start, in nommu_vma_show()
163 vma->vm_end, in nommu_vma_show()
174 } else if (mm && is_stack(vma)) { in nommu_vma_show()
195 struct vm_area_struct *vma; in m_start() local
217 vma = find_vma(mm, addr); in m_start()
218 if (vma) in m_start()
219 return vma; in m_start()
242 struct vm_area_struct *vma = _p; in m_next() local
244 *pos = vma->vm_end; in m_next()
245 return find_vma(vma->vm_mm, vma->vm_end); in m_next()