Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 19 of 19) sorted by relevance

/kernel/cgroup/
Dpids.c57 atomic64_t limit; member
87 atomic64_set(&pids->limit, PIDS_MAX); in pids_css_alloc()
172 int64_t limit = atomic64_read(&p->limit); in pids_try_charge() local
179 if (new > limit) { in pids_try_charge()
306 int64_t limit; in pids_max_write() local
311 limit = PIDS_MAX; in pids_max_write()
315 err = kstrtoll(buf, 0, &limit); in pids_max_write()
319 if (limit < 0 || limit >= PIDS_MAX) in pids_max_write()
327 atomic64_set(&pids->limit, limit); in pids_max_write()
335 int64_t limit = atomic64_read(&pids->limit); in pids_max_show() local
[all …]
/kernel/
Dkexec_core.c873 int limit; member
878 .limit = -1,
883 .limit = -1,
894 struct kexec_load_limit *limit = table->data; in kexec_limit_handler() local
911 mutex_lock(&limit->mutex); in kexec_limit_handler()
912 if (limit->limit != -1 && val >= limit->limit) in kexec_limit_handler()
915 limit->limit = val; in kexec_limit_handler()
916 mutex_unlock(&limit->mutex); in kexec_limit_handler()
921 mutex_lock(&limit->mutex); in kexec_limit_handler()
922 val = limit->limit; in kexec_limit_handler()
[all …]
Dpanic.c240 unsigned int limit; in check_panic_on_warn() local
245 limit = READ_ONCE(warn_limit); in check_panic_on_warn()
246 if (atomic_inc_return(&warn_count) >= limit && limit) in check_panic_on_warn()
248 origin, limit); in check_panic_on_warn()
Dexit.c1011 unsigned int limit; in make_task_dead() local
1040 limit = READ_ONCE(oops_limit); in make_task_dead()
1041 if (atomic_inc_return(&oops_count) >= limit && limit) in make_task_dead()
1042 panic("Oopsed too often (kernel.oops_limit is %d)", limit); in make_task_dead()
Duser_namespace.c64 unsigned long limit = RLIM_INFINITY; in enforced_nproc_rlimit() local
69 limit = rlimit(RLIMIT_NPROC); in enforced_nproc_rlimit()
71 return limit; in enforced_nproc_rlimit()
Daudit.c428 static int audit_set_rate_limit(u32 limit) in audit_set_rate_limit() argument
430 return audit_do_config_change("audit_rate_limit", &audit_rate_limit, limit); in audit_set_rate_limit()
433 static int audit_set_backlog_limit(u32 limit) in audit_set_backlog_limit() argument
435 return audit_do_config_change("audit_backlog_limit", &audit_backlog_limit, limit); in audit_set_backlog_limit()
Dsignal.c3320 unsigned char limit, layout; member
3341 if (si_code <= sig_sicodes[sig].limit) in known_siginfo_layout()
3359 (si_code <= sig_sicodes[sig].limit)) { in siginfo_layout()
/kernel/dma/
Dcontiguous.c212 void __init dma_contiguous_reserve(phys_addr_t limit) in dma_contiguous_reserve() argument
216 phys_addr_t selected_limit = limit; in dma_contiguous_reserve()
221 pr_debug("%s(limit %08lx)\n", __func__, (unsigned long)limit); in dma_contiguous_reserve()
226 selected_limit = min_not_zero(limit_cmdline, limit); in dma_contiguous_reserve()
275 phys_addr_t limit, struct cma **res_cma, in dma_contiguous_reserve_area() argument
281 ret = cma_declare_contiguous(base, size, limit, 0, 0, fixed, in dma_contiguous_reserve_area()
Ddebug.c356 int limit = min(HASH_SIZE, (index.dev_addr >> HASH_FN_SHIFT) + 1); in bucket_find_contain() local
358 for (int i = 0; i < limit; i++) { in bucket_find_contain()
/kernel/bpf/
Dlpm_trie.c170 u32 limit = min(node->prefixlen, key->prefixlen); in __longest_prefix_match() local
186 if (prefixlen >= limit) in __longest_prefix_match()
187 return limit; in __longest_prefix_match()
199 if (prefixlen >= limit) in __longest_prefix_match()
200 return limit; in __longest_prefix_match()
211 if (prefixlen >= limit) in __longest_prefix_match()
212 return limit; in __longest_prefix_match()
221 if (prefixlen >= limit) in __longest_prefix_match()
222 return limit; in __longest_prefix_match()
/kernel/futex/
Dcore.c808 unsigned int limit = ROBUST_LIST_LIMIT, pi, pip; in exit_robust_list() local
854 if (!--limit) in exit_robust_list()
902 unsigned int limit = ROBUST_LIST_LIMIT, pi, pip; in compat_exit_robust_list() local
954 if (!--limit) in compat_exit_robust_list()
/kernel/debug/
Dgdbstub.c407 unsigned char *limit; in pack_threadid() local
410 limit = id + (BUF_THREAD_ID_SIZE / 2); in pack_threadid()
411 while (id < limit) { in pack_threadid()
/kernel/livepatch/
Dcore.c1200 struct klp_patch *limit) in klp_cleanup_module_patches_limited() argument
1206 if (patch == limit) in klp_cleanup_module_patches_limited()
/kernel/time/
Dposix-cpu-timers.c841 static bool check_rlimit(u64 time, u64 limit, int signo, bool rt, bool hard) in check_rlimit() argument
843 if (time < limit) in check_rlimit()
/kernel/rcu/
DKconfig346 jiffy, and overrides the 32-callback batching if this limit
349 Say Y here if you need tighter callback-limit enforcement.
/kernel/irq/
Dmsi.c111 struct xa_limit limit = { .min = 0, .max = hwsize - 1 }; in msi_insert_desc() local
115 ret = xa_alloc(xa, &index, desc, limit, GFP_KERNEL); in msi_insert_desc()
/kernel/power/
DKconfig195 int "Maximum number of user space wakeup sources (0 = no limit)"
/kernel/trace/
DKconfig971 This defines the limit of number of functions that can be
974 This file can be reset, but the limit can not change in
/kernel/sched/
Dfair.c728 s64 vlag, limit; in entity_lag() local
731 limit = calc_delta_fair(max_t(u64, 2*se->slice, TICK_NSEC), se); in entity_lag()
733 return clamp(vlag, -limit, limit); in entity_lag()