taglinefilesource code
rlim141include/linux/sched.hstruct rlimit rlim[RLIM_NLIMITS]; 
rlim483kernel/sys.cint sys_getrlimit(int resource, struct rlimit *rlim)
rlim487kernel/sys.cverify_area(rlim,sizeof *rlim);
rlim488kernel/sys.cput_fs_long(current->rlim[resource].rlim_cur, 
rlim489kernel/sys.c(unsigned long *) rlim);
rlim490kernel/sys.cput_fs_long(current->rlim[resource].rlim_max, 
rlim491kernel/sys.c((unsigned long *) rlim)+1);
rlim495kernel/sys.cint sys_setrlimit(int resource, struct rlimit *rlim)
rlim501kernel/sys.cold = current->rlim + resource;
rlim502kernel/sys.cnew.rlim_cur = get_fs_long((unsigned long *) rlim);
rlim503kernel/sys.cnew.rlim_max = get_fs_long(((unsigned long *) rlim)+1);