Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 9 of 9) sorted by relevance

/kernel/
Dcapability.c171 kdata[i].effective = pE.cap[i]; in SYSCALL_DEFINE2()
172 kdata[i].permitted = pP.cap[i]; in SYSCALL_DEFINE2()
173 kdata[i].inheritable = pI.cap[i]; in SYSCALL_DEFINE2()
250 effective.cap[i] = kdata[i].effective; in SYSCALL_DEFINE2()
251 permitted.cap[i] = kdata[i].permitted; in SYSCALL_DEFINE2()
252 inheritable.cap[i] = kdata[i].inheritable; in SYSCALL_DEFINE2()
255 effective.cap[i] = 0; in SYSCALL_DEFINE2()
256 permitted.cap[i] = 0; in SYSCALL_DEFINE2()
257 inheritable.cap[i] = 0; in SYSCALL_DEFINE2()
261 effective.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; in SYSCALL_DEFINE2()
[all …]
Dauditsc.c1162 kernel_cap_t *cap) in audit_log_cap() argument
1166 if (cap_isclear(*cap)) { in audit_log_cap()
1172 audit_log_format(ab, "%08x", cap->cap[CAP_LAST_U32 - i]); in audit_log_cap()
1320 audit_log_cap(ab, "cap_pi", &context->capset.cap.inheritable); in show_special()
1321 audit_log_cap(ab, "cap_pp", &context->capset.cap.permitted); in show_special()
1322 audit_log_cap(ab, "cap_pe", &context->capset.cap.effective); in show_special()
1323 audit_log_cap(ab, "cap_pa", &context->capset.cap.ambient); in show_special()
2542 context->capset.cap.effective = new->cap_effective; in __audit_log_capset()
2543 context->capset.cap.inheritable = new->cap_effective; in __audit_log_capset()
2544 context->capset.cap.permitted = new->cap_permitted; in __audit_log_capset()
[all …]
Dumh.c671 cap_array[i] = usermodehelper_bset.cap[i]; in proc_cap_handler()
673 cap_array[i] = usermodehelper_inheritable.cap[i]; in proc_cap_handler()
695 new_cap.cap[i] = cap_array[i]; in proc_cap_handler()
Daudit.h182 struct audit_cap_data cap; member
/kernel/power/
Denergy_model.c204 unsigned long cap, prev_cap = 0; in em_register_perf_domain() local
228 cap = arch_scale_cpu_capacity(cpu); in em_register_perf_domain()
229 if (prev_cap && prev_cap != cap) { in em_register_perf_domain()
235 prev_cap = cap; in em_register_perf_domain()
/kernel/sched/
Dtopology.c1922 unsigned long cap; in asym_cpu_capacity_level() local
1925 cap = arch_scale_cpu_capacity(cpumask_first(cpu_map)); in asym_cpu_capacity_level()
1928 if (arch_scale_cpu_capacity(i) != cap) { in asym_cpu_capacity_level()
Dfair.c104 #define fits_capacity(cap, max) ((cap) * 1280 < (max) * 1024) argument
787 long cap = (long)(cpu_scale - cfs_rq->avg.util_avg) / 2; in post_init_entity_util_avg() local
789 if (cap > 0) { in post_init_entity_util_avg()
794 if (sa->util_avg > cap) in post_init_entity_util_avg()
795 sa->util_avg = cap; in post_init_entity_util_avg()
797 sa->util_avg = cap; in post_init_entity_util_avg()
/kernel/rcu/
Dtree.c3510 int cap = rcu_capacity[(rcu_num_lvls - 1) - i]; in rcu_init_geometry() local
3511 num_rcu_lvl[i] = DIV_ROUND_UP(nr_cpu_ids, cap); in rcu_init_geometry()
/kernel/bpf/
Dverifier.c2154 u32 cap = bpf_map_flags_to_cap(map); in check_map_access_type() local
2156 if (type == BPF_WRITE && !(cap & BPF_MAP_CAN_WRITE)) { in check_map_access_type()
2162 if (type == BPF_READ && !(cap & BPF_MAP_CAN_READ)) { in check_map_access_type()