Searched refs:newbrk (Results 1 – 5 of 5) sorted by relevance
/linux-2.4.37.9/arch/ia64/kernel/ |
D | sys_ia64.c | 103 unsigned long rlim, retval, newbrk, oldbrk; in ia64_brk() local 115 newbrk = PAGE_ALIGN(brk); in ia64_brk() 117 if (oldbrk == newbrk) in ia64_brk() 122 if (!do_munmap(mm, newbrk, oldbrk-newbrk)) in ia64_brk() 128 if ((newbrk - oldbrk) > RGN_MAP_LIMIT || rgn_offset(newbrk) > RGN_MAP_LIMIT) in ia64_brk() 137 if (find_vma_intersection(mm, oldbrk, newbrk+PAGE_SIZE)) in ia64_brk() 141 if (!vm_enough_memory((newbrk-oldbrk) >> PAGE_SHIFT)) in ia64_brk() 145 if (do_brk(oldbrk, newbrk-oldbrk) != oldbrk) in ia64_brk()
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | sys_sunos.c | 146 unsigned long newbrk, oldbrk; in sunos_brk() local 158 newbrk = PAGE_ALIGN(brk); in sunos_brk() 161 if (oldbrk == newbrk) { in sunos_brk() 171 do_munmap(current->mm, newbrk, oldbrk-newbrk); in sunos_brk() 187 if (find_vma_intersection(current->mm, oldbrk, newbrk+PAGE_SIZE)) in sunos_brk() 201 freepages -= (newbrk-oldbrk) >> PAGE_SHIFT; in sunos_brk() 208 do_brk(oldbrk, newbrk-oldbrk); in sunos_brk()
|
/linux-2.4.37.9/mm/ |
D | mmap.c | 153 unsigned long newbrk, oldbrk; in sys_brk() local 160 newbrk = PAGE_ALIGN(brk); in sys_brk() 162 if (oldbrk == newbrk) in sys_brk() 167 if (!do_munmap(mm, newbrk, oldbrk-newbrk)) in sys_brk() 178 if (find_vma_intersection(mm, oldbrk, newbrk+PAGE_SIZE)) in sys_brk() 182 if (!vm_enough_memory((newbrk-oldbrk) >> PAGE_SHIFT)) in sys_brk() 186 if (do_brk(oldbrk, newbrk-oldbrk) != oldbrk) in sys_brk()
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | sys_sunos32.c | 127 unsigned long newbrk, oldbrk, brk = (unsigned long) baddr; in sunos_brk() local 132 newbrk = PAGE_ALIGN(brk); in sunos_brk() 135 if (oldbrk == newbrk) { in sunos_brk() 142 do_munmap(current->mm, newbrk, oldbrk-newbrk); in sunos_brk() 153 if (find_vma_intersection(current->mm, oldbrk, newbrk+PAGE_SIZE)) in sunos_brk() 165 freepages -= (newbrk-oldbrk) >> PAGE_SHIFT; in sunos_brk() 170 do_brk(oldbrk, newbrk-oldbrk); in sunos_brk()
|
/linux-2.4.37.9/arch/mips/kernel/ |
D | sysirix.c | 533 unsigned long newbrk, oldbrk; in irix_brk() local 543 newbrk = PAGE_ALIGN(brk); in irix_brk() 545 if (oldbrk == newbrk) { in irix_brk() 556 do_munmap(mm, newbrk, oldbrk-newbrk); in irix_brk() 574 if (find_vma_intersection(mm, oldbrk, newbrk+PAGE_SIZE)) { in irix_brk() 582 if (!vm_enough_memory((newbrk-oldbrk) >> PAGE_SHIFT)) { in irix_brk() 591 do_brk(oldbrk, newbrk-oldbrk); in irix_brk()
|