Home
last modified time | relevance | path

Searched refs:k (Results 1 – 13 of 13) sorted by relevance

/kernel/
Dkthread.c60 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread() argument
62 return __to_kthread(k->vfork_done); in to_kthread()
65 static struct kthread *to_live_kthread(struct task_struct *k) in to_live_kthread() argument
67 struct completion *vfork = ACCESS_ONCE(k->vfork_done); in to_live_kthread()
68 if (likely(vfork) && try_get_task_stack(k)) in to_live_kthread()
414 static void __kthread_unpark(struct task_struct *k, struct kthread *kthread) in __kthread_unpark() argument
429 __kthread_bind(k, kthread->cpu, TASK_PARKED); in __kthread_unpark()
430 wake_up_state(k, TASK_PARKED); in __kthread_unpark()
442 void kthread_unpark(struct task_struct *k) in kthread_unpark() argument
444 struct kthread *kthread = to_live_kthread(k); in kthread_unpark()
[all …]
Drange.c126 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
128 for (i = 0; i < k; i++) { in clean_sort_range()
131 for (j = k; j > i; j--) { in clean_sort_range()
133 k = j; in clean_sort_range()
139 range[i].start = range[k].start; in clean_sort_range()
140 range[i].end = range[k].end; in clean_sort_range()
141 range[k].start = 0; in clean_sort_range()
142 range[k].end = 0; in clean_sort_range()
143 k--; in clean_sort_range()
Daudit.h290 #define audit_to_watch(k, p, l, o) (-EINVAL) argument
291 #define audit_add_watch(k, l) (-EINVAL) argument
292 #define audit_remove_watch_rule(k) BUG() argument
296 #define audit_alloc_mark(k, p, l) (ERR_PTR(-EINVAL)) argument
299 #define audit_remove_mark_rule(k) argument
Dkexec_file.c903 int i, k; in kexec_purgatory_find_symbol() local
923 for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) { in kexec_purgatory_find_symbol()
924 if (ELF_ST_BIND(syms[k].st_info) != STB_GLOBAL) in kexec_purgatory_find_symbol()
927 if (strcmp(strtab + syms[k].st_name, name) != 0) in kexec_purgatory_find_symbol()
930 if (syms[k].st_shndx == SHN_UNDEF || in kexec_purgatory_find_symbol()
931 syms[k].st_shndx >= ehdr->e_shnum) { in kexec_purgatory_find_symbol()
933 name, syms[k].st_shndx); in kexec_purgatory_find_symbol()
938 return &syms[k]; in kexec_purgatory_find_symbol()
Dseccomp.c106 u32 k = ftest->k; in seccomp_check_filter() local
112 if (k >= sizeof(struct seccomp_data) || k & 3) in seccomp_check_filter()
117 ftest->k = sizeof(struct seccomp_data); in seccomp_check_filter()
121 ftest->k = sizeof(struct seccomp_data); in seccomp_check_filter()
Dcpuset.c639 int i, j, k; /* indices for partition finding loops */ in generate_sched_domains() local
718 for (k = 0; k < csn; k++) { in generate_sched_domains()
719 struct cpuset *c = csa[k]; in generate_sched_domains()
Dcompat.c605 unsigned long *k; in compat_get_user_cpu_mask() local
612 k = cpumask_bits(new_mask); in compat_get_user_cpu_mask()
613 return compat_get_bitmap(k, user_mask_ptr, len * 8); in compat_get_user_cpu_mask()
Dsignal.c3065 struct k_sigaction *k; in do_sigaction() local
3071 k = &p->sighand->action[sig-1]; in do_sigaction()
3075 *oact = *k; in do_sigaction()
3082 *k = *act; in do_sigaction()
/kernel/power/
Dswap.c100 unsigned int k; member
431 handle->k = 0; in get_swap_writer()
454 handle->cur->entries[handle->k++] = offset; in swap_write_page()
455 if (handle->k >= MAP_PAGE_ENTRIES) { in swap_write_page()
465 handle->k = 0; in swap_write_page()
1011 handle->k = 0; in get_swap_reader()
1025 offset = handle->cur->entries[handle->k]; in swap_read_page()
1031 if (++handle->k >= MAP_PAGE_ENTRIES) { in swap_read_page()
1032 handle->k = 0; in swap_read_page()
1313 handle->cur->entries[handle->k]) { in load_image_lzo()
Dhibernate.c243 unsigned int k; in swsusp_show_speed() local
251 k = nr_pages * (PAGE_SIZE / 1024); in swsusp_show_speed()
252 kps = (k * 100) / centisecs; in swsusp_show_speed()
254 msg, k, in swsusp_show_speed()
/kernel/bpf/
Dcore.c59 void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size) in bpf_internal_load_pointer_neg_helper() argument
63 if (k >= SKF_NET_OFF) in bpf_internal_load_pointer_neg_helper()
64 ptr = skb_network_header(skb) + k - SKF_NET_OFF; in bpf_internal_load_pointer_neg_helper()
65 else if (k >= SKF_LL_OFF) in bpf_internal_load_pointer_neg_helper()
66 ptr = skb_mac_header(skb) + k - SKF_LL_OFF; in bpf_internal_load_pointer_neg_helper()
/kernel/printk/
Dprintk.c1145 unsigned long long k; in boot_delay_msec() local
1153 k = (unsigned long long)loops_per_msec * boot_delay; in boot_delay_msec()
1156 while (k) { in boot_delay_msec()
1157 k--; in boot_delay_msec()
/kernel/sched/
Dcore.c6924 int i, j, k; in sched_init_numa() local
6940 for (k = 0; k < nr_node_ids; k++) { in sched_init_numa()
6941 int distance = node_distance(i, k); in sched_init_numa()
6953 if (sched_debug() && node_distance(k, i) != distance) in sched_init_numa()
7016 for_each_node(k) { in sched_init_numa()
7017 if (node_distance(j, k) > sched_domains_numa_distance[i]) in sched_init_numa()
7020 cpumask_or(mask, mask, cpumask_of_node(k)); in sched_init_numa()