Searched refs:rlimit (Results 51 - 75 of 88) sorted by relevance

1234

/linux-master/kernel/
H A Dacct.c501 flim = rlimit(RLIMIT_FSIZE);
/linux-master/io_uring/
H A Drsrc.c51 page_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
713 if (nr_args > rlimit(RLIMIT_NOFILE))
H A Dnet.c1503 accept->nofile = rlimit(RLIMIT_NOFILE);
1613 sock->nofile = rlimit(RLIMIT_NOFILE);
/linux-master/tools/bpf/bpftool/
H A Dcommon.c86 * Libbpf also offers to probe for memcg-based accounting vs rlimit, but does
90 * Instead, we can probe by lowering the process-based rlimit to 0, trying to
91 * load a BPF object, and resetting the rlimit. If the load succeeds then
95 * applications might attempt to load items while the rlimit is at 0. Given
100 struct rlimit rlim_init, rlim_cur_zero = {};
132 /* reset soft rlimit to its initial value */
144 struct rlimit rinf = { RLIM_INFINITY, RLIM_INFINITY };
/linux-master/tools/include/nolibc/
H A Dsys.h904 * int getrlimit(int resource, struct rlimit *rlim);
905 * int setrlimit(int resource, const struct rlimit *rlim);
916 int getrlimit(int resource, struct rlimit *rlim)
929 int setrlimit(int resource, const struct rlimit *rlim)
/linux-master/mm/
H A Dmmap.c210 * Check against rlimit here. If this check is done later after the test
215 if (check_data_rlimit(rlimit(RLIMIT_DATA), brk, mm->start_brk,
1173 limit_pages = rlimit(RLIMIT_MEMLOCK);
1985 if (size > rlimit(RLIMIT_STACK))
3485 if (mm->total_vm + npages > rlimit(RLIMIT_AS) >> PAGE_SHIFT)
3489 mm->data_vm + npages > rlimit(RLIMIT_DATA) >> PAGE_SHIFT) {
3491 if (rlimit(RLIMIT_DATA) == 0 &&
3498 rlimit(RLIMIT_DATA),
/linux-master/include/linux/
H A Dsecurity.h40 struct rlimit;
459 struct rlimit *new_rlim);
1259 struct rlimit *new_rlim)
H A Dsyscalls.h35 struct rlimit;
690 struct rlimit __user *rlim);
692 struct rlimit __user *rlim);
1167 asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim);
H A Dlsm_hook_defs.h243 struct rlimit *new_rlim)
/linux-master/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c398 struct rlimit rlim_old, rlim_new = {};
/linux-master/arch/s390/kvm/
H A Dpci.c209 page_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
/linux-master/fs/zonefs/
H A Dfile.c393 loff_t limit = rlimit(RLIMIT_FSIZE);
/linux-master/arch/sparc/kernel/
H A Dsys_sparc_64.c276 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack)
/linux-master/fs/
H A Dbinfmt_flat.c498 rlim = rlimit(RLIMIT_DATA);
H A Dselect.c988 if (nfds > rlimit(RLIMIT_NOFILE))
H A Dexec.c1498 /* Store any stack rlimit changes before starting thread. */
1940 is_rlimit_overlimit(current_ucounts(), UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC))) {
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dperf-hwbreak.c148 struct rlimit rlim;
/linux-master/drivers/vfio/
H A Dvfio_iommu_type1.c1453 unsigned long pfn, limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
1671 unsigned long limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
/linux-master/tools/perf/util/
H A Ddso.c676 struct rlimit l;
/linux-master/ipc/
H A Dmqueue.c378 if (msgqueue == LONG_MAX || msgqueue > rlimit(RLIMIT_MSGQUEUE)) {
H A Dshm.c1195 if (cmd == SHM_LOCK && !rlimit(RLIMIT_MEMLOCK)) {
/linux-master/drivers/vhost/
H A Dvdpa.c1116 lock_limit = PFN_DOWN(rlimit(RLIMIT_MEMLOCK));
/linux-master/security/apparmor/
H A Dlsm.c999 unsigned int resource, struct rlimit *new_rlim)
/linux-master/security/selinux/
H A Dhooks.c2474 struct rlimit *rlim, *initrlim;
2509 update_rlimit_cpu(current, rlimit(RLIMIT_CPU));
4203 struct rlimit *new_rlim)
4205 struct rlimit *old_rlim = p->signal->rlim + resource;
/linux-master/tools/lib/bpf/
H A Dbpf.c149 struct rlimit rlim;

Completed in 301 milliseconds

1234