Home
last modified time | relevance | path

Searched refs:rlim (Results 1 – 25 of 40) sorted by relevance

12

/linux-2.4.37.9/fs/
Dbinfmt_aout.c125 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
129 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
136 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
140 current->rlim[RLIMIT_CORE].rlim_cur) in aout_core_dump()
267 unsigned long rlim; in load_aout_binary() local
284 rlim = current->rlim[RLIMIT_DATA].rlim_cur; in load_aout_binary()
285 if (rlim >= RLIM_INFINITY) in load_aout_binary()
286 rlim = ~0; in load_aout_binary()
287 if (ex.a_data + ex.a_bss > rlim) in load_aout_binary()
Dfcntl.c71 if (orig_start >= current->rlim[RLIMIT_NOFILE].rlim_cur) in locate_fd()
90 if (newfd >= current->rlim[RLIMIT_NOFILE].rlim_cur) in locate_fd()
152 if (newfd >= current->rlim[RLIMIT_NOFILE].rlim_cur) in sys_dup2()
/linux-2.4.37.9/arch/sparc64/kernel/
Dbinfmt_aout32.c107 current->rlim[RLIMIT_CORE].rlim_cur) in aout32_core_dump()
112 current->rlim[RLIMIT_CORE].rlim_cur) in aout32_core_dump()
205 unsigned long rlim; in load_aout32_binary() local
223 rlim = current->rlim[RLIMIT_DATA].rlim_cur; in load_aout32_binary()
224 if (rlim >= RLIM_INFINITY) in load_aout32_binary()
225 rlim = ~0; in load_aout32_binary()
226 if (ex.a_data + ex.a_bss > rlim) in load_aout32_binary()
Dsys_sunos32.c126 unsigned long rlim; in sunos_brk() local
147 rlim = current->rlim[RLIMIT_DATA].rlim_cur; in sunos_brk()
148 if (rlim >= RLIM_INFINITY) in sunos_brk()
149 rlim = ~0; in sunos_brk()
150 if (brk - current->mm->end_code > rlim) in sunos_brk()
/linux-2.4.37.9/arch/sparc64/solaris/
Dmisc.c456 asmlinkage int solaris_getrlimit(unsigned int resource, struct rlimit32 *rlim) in solaris_getrlimit() argument
483 ret = put_user (r.rlim_cur, &rlim->rlim_cur); in solaris_getrlimit()
484 ret |= __put_user (r.rlim_max, &rlim->rlim_max); in solaris_getrlimit()
489 asmlinkage int solaris_setrlimit(unsigned int resource, struct rlimit32 *rlim) in solaris_setrlimit() argument
506 if (get_user (r.rlim_cur, &rlim->rlim_cur) || in solaris_setrlimit()
507 __get_user (r.rlim_max, &rlim->rlim_max)) in solaris_setrlimit()
530 asmlinkage int solaris_getrlimit64(unsigned int resource, struct rlimit *rlim) in solaris_getrlimit64() argument
553 ret = put_user (r.rlim_cur, &rlim->rlim_cur); in solaris_getrlimit64()
554 ret |= __put_user (r.rlim_max, &rlim->rlim_max); in solaris_getrlimit64()
559 asmlinkage int solaris_setrlimit64(unsigned int resource, struct rlimit *rlim) in solaris_setrlimit64() argument
[all …]
Dfs.c655 return current->rlim[RLIMIT_FSIZE].rlim_cur >> 9; in solaris_ulimit()
660 if (val > current->rlim[RLIMIT_FSIZE].rlim_max) { in solaris_ulimit()
665 current->rlim[RLIMIT_FSIZE].rlim_max = val; in solaris_ulimit()
667 current->rlim[RLIMIT_FSIZE].rlim_cur = val; in solaris_ulimit()
671 return current->rlim[RLIMIT_DATA].rlim_cur; in solaris_ulimit()
/linux-2.4.37.9/kernel/
Dsys.c1098 asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit *rlim) in sys_getrlimit() argument
1103 return copy_to_user(rlim, current->rlim + resource, sizeof(*rlim)) in sys_getrlimit()
1113 asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit *rlim) in sys_old_getrlimit() argument
1119 memcpy(&x, current->rlim + resource, sizeof(*rlim)); in sys_old_getrlimit()
1124 return copy_to_user(rlim, &x, sizeof(x))?-EFAULT:0; in sys_old_getrlimit()
1129 asmlinkage long sys_setrlimit(unsigned int resource, struct rlimit *rlim) in sys_setrlimit() argument
1135 if(copy_from_user(&new_rlim, rlim, sizeof(*rlim))) in sys_setrlimit()
1139 old_rlim = current->rlim + resource; in sys_setrlimit()
Dacct.c345 flim = current->rlim[RLIMIT_FSIZE].rlim_cur; in do_acct_process()
346 current->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in do_acct_process()
349 current->rlim[RLIMIT_FSIZE].rlim_cur = flim; in do_acct_process()
Dkmod.c128 memcpy(&curtask->rlim, &init_task.rlim, sizeof(struct rlimit)*RLIM_NLIMITS); in exec_usermodehelper()
Dfork.c80 init_task.rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; in fork_init()
81 init_task.rlim[RLIMIT_NPROC].rlim_max = max_threads/2; in fork_init()
682 if (atomic_read(&p->user->processes) >= p->rlim[RLIMIT_NPROC].rlim_cur in do_fork()
Dsched.c1314 memcpy(this_task->rlim, init_task.rlim, sizeof(*(this_task->rlim))); in reparent_to_init()
Dtimer.c544 if (psecs / HZ > p->rlim[RLIMIT_CPU].rlim_cur) { in do_process_times()
549 if (psecs / HZ > p->rlim[RLIMIT_CPU].rlim_max) in do_process_times()
/linux-2.4.37.9/arch/ia64/kernel/
Dsys_ia64.c103 unsigned long rlim, retval, newbrk, oldbrk; in ia64_brk() local
132 rlim = current->rlim[RLIMIT_DATA].rlim_cur; in ia64_brk()
133 if (rlim < RLIM_INFINITY && brk - mm->start_data > rlim) in ia64_brk()
/linux-2.4.37.9/mm/
Dmmap.c152 unsigned long rlim, retval; in sys_brk() local
173 rlim = current->rlim[RLIMIT_DATA].rlim_cur; in sys_brk()
174 if (rlim < RLIM_INFINITY && brk - mm->start_data > rlim) in sys_brk()
447 if (locked > current->rlim[RLIMIT_MEMLOCK].rlim_cur) in do_mmap_pgoff()
502 > current->rlim[RLIMIT_AS].rlim_cur) in do_mmap_pgoff()
1085 if (locked > current->rlim[RLIMIT_MEMLOCK].rlim_cur) in do_brk()
1108 > current->rlim[RLIMIT_AS].rlim_cur) in do_brk()
Dmlock.c208 lock_limit = current->rlim[RLIMIT_MEMLOCK].rlim_cur; in sys_mlock()
275 lock_limit = current->rlim[RLIMIT_MEMLOCK].rlim_cur; in sys_mlockall()
Dmremap.c318 if (locked > current->rlim[RLIMIT_MEMLOCK].rlim_cur) in do_mremap()
323 > current->rlim[RLIMIT_AS].rlim_cur) in do_mremap()
/linux-2.4.37.9/arch/ia64/mm/
Dfault.c36 if (address - vma->vm_start > current->rlim[RLIMIT_STACK].rlim_cur in expand_backing_store()
37 || (((vma->vm_mm->total_vm + grow) << PAGE_SHIFT) > current->rlim[RLIMIT_AS].rlim_cur)) in expand_backing_store()
/linux-2.4.37.9/arch/sparc/kernel/
Dsys_sunos.c145 unsigned long rlim; in sunos_brk() local
178 rlim = current->rlim[RLIMIT_DATA].rlim_cur; in sunos_brk()
179 if (rlim >= RLIM_INFINITY) in sunos_brk()
180 rlim = ~0; in sunos_brk()
181 if (brk - current->mm->end_code > rlim) in sunos_brk()
/linux-2.4.37.9/arch/mips/kernel/
Dsysirix.c124 current->rlim[RLIMIT_STACK].rlim_max = in irix_prctl()
125 current->rlim[RLIMIT_STACK].rlim_cur = value; in irix_prctl()
129 if (value > current->rlim[RLIMIT_STACK].rlim_max) { in irix_prctl()
133 current->rlim[RLIMIT_STACK].rlim_cur = value; in irix_prctl()
141 error = current->rlim[RLIMIT_STACK].rlim_cur; in irix_prctl()
532 unsigned long rlim; in irix_brk() local
563 rlim = current->rlim[RLIMIT_DATA].rlim_cur; in irix_brk()
564 if (rlim >= RLIM_INFINITY) in irix_brk()
565 rlim = ~0; in irix_brk()
566 if (brk - mm->end_code > rlim) { in irix_brk()
[all …]
/linux-2.4.37.9/arch/x86_64/ia32/
Dsys_ia32.c1125 extern asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit *rlim);
1128 sys32_getrlimit(unsigned int resource, struct rlimit32 *rlim) in sys32_getrlimit() argument
1143 if (verify_area(VERIFY_WRITE, rlim, sizeof(struct rlimit32)) || in sys32_getrlimit()
1144 __put_user(RESOURCE32(r.rlim_cur), &rlim->rlim_cur) || in sys32_getrlimit()
1145 __put_user(RESOURCE32(r.rlim_max), &rlim->rlim_max)) in sys32_getrlimit()
1151 extern asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit *rlim);
1154 sys32_old_getrlimit(unsigned int resource, struct rlimit32 *rlim) in sys32_old_getrlimit() argument
1169 if (verify_area(VERIFY_WRITE, rlim, sizeof(struct rlimit32)) || in sys32_old_getrlimit()
1170 __put_user(r.rlim_cur, &rlim->rlim_cur) || in sys32_old_getrlimit()
1171 __put_user(r.rlim_max, &rlim->rlim_max)) in sys32_old_getrlimit()
[all …]
/linux-2.4.37.9/include/linux/
Dmm.h670 if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur || in expand_stack()
671 ((vma->vm_mm->total_vm + grow) << PAGE_SHIFT) > current->rlim[RLIMIT_AS].rlim_cur) { in expand_stack()
677 … ((vma->vm_mm->locked_vm + grow) << PAGE_SHIFT) > current->rlim[RLIMIT_MEMLOCK].rlim_cur) { in expand_stack()
Dsched.h379 struct rlimit rlim[RLIM_NLIMITS]; member
503 rlim: INIT_RLIMITS, \
/linux-2.4.37.9/drivers/block/
Dll_rw_blk.c555 int rlim = q->nr_requests >> 5; in get_request() local
557 if (rlim < 4) in get_request()
558 rlim = 4; in get_request()
564 if ((rw == WRITE) || (rw == READ && rl->pending[READ] > rlim)) in get_request()
/linux-2.4.37.9/fs/nfsd/
Dnfssvc.c166 current->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; in nfsd()
/linux-2.4.37.9/arch/ppc64/kernel/
Dsys_ppc32.c2185 extern asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit *rlim);
2186 asmlinkage long sys32_getrlimit(unsigned int resource, struct rlimit32 *rlim) in sys32_getrlimit() argument
2196 ret = put_user(RESOURCE32(r.rlim_cur), &rlim->rlim_cur); in sys32_getrlimit()
2197 ret |= __put_user(RESOURCE32(r.rlim_max), &rlim->rlim_max); in sys32_getrlimit()
2204 asmlinkage long sys32_old_getrlimit(unsigned int resource, struct rlimit32* rlim) in sys32_old_getrlimit() argument
2215 memcpy(&x, current->rlim+resource, sizeof(struct rlimit)); in sys32_old_getrlimit()
2227 rc = (copy_to_user(rlim, &x32, sizeof(x32))) ? (-EFAULT) : 0; in sys32_old_getrlimit()
2236 extern asmlinkage long sys_setrlimit(unsigned int resource, struct rlimit *rlim);
2237 asmlinkage long sys32_setrlimit(unsigned int resource, struct rlimit32 *rlim) in sys32_setrlimit() argument
2243 …trlimit - entered - resource=%x, rlim=%p - pid=%ld, comm=%s\n", resource, rlim, current->pid, curr… in sys32_setrlimit()
[all …]

12