Home
last modified time | relevance | path

Searched refs:q (Results 1 – 23 of 23) sorted by relevance

/kernel/sched/
Dswait.c7 void __init_swait_queue_head(struct swait_queue_head *q, const char *name, in __init_swait_queue_head() argument
10 raw_spin_lock_init(&q->lock); in __init_swait_queue_head()
11 lockdep_set_class_and_name(&q->lock, key, name); in __init_swait_queue_head()
12 INIT_LIST_HEAD(&q->task_list); in __init_swait_queue_head()
22 void swake_up_locked(struct swait_queue_head *q) in swake_up_locked() argument
26 if (list_empty(&q->task_list)) in swake_up_locked()
29 curr = list_first_entry(&q->task_list, typeof(*curr), task_list); in swake_up_locked()
42 void swake_up_all_locked(struct swait_queue_head *q) in swake_up_all_locked() argument
44 while (!list_empty(&q->task_list)) in swake_up_all_locked()
45 swake_up_locked(q); in swake_up_all_locked()
[all …]
Dsched.h2774 void swake_up_all_locked(struct swait_queue_head *q);
2775 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait);
/kernel/trace/
Dblktrace.c346 static int __blk_trace_remove(struct request_queue *q) in __blk_trace_remove() argument
350 bt = rcu_replace_pointer(q->blk_trace, NULL, in __blk_trace_remove()
351 lockdep_is_held(&q->debugfs_mutex)); in __blk_trace_remove()
361 int blk_trace_remove(struct request_queue *q) in blk_trace_remove() argument
365 mutex_lock(&q->debugfs_mutex); in blk_trace_remove()
366 ret = __blk_trace_remove(q); in blk_trace_remove()
367 mutex_unlock(&q->debugfs_mutex); in blk_trace_remove()
478 static int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev, in do_blk_trace_setup() argument
486 lockdep_assert_held(&q->debugfs_mutex); in do_blk_trace_setup()
504 if (rcu_dereference_protected(q->blk_trace, in do_blk_trace_setup()
[all …]
Dtrace_boot.c251 char *q; in trace_boot_set_ftrace_filter() local
254 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
255 if (!q) in trace_boot_set_ftrace_filter()
257 if (ftrace_set_filter(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
261 kfree(q); in trace_boot_set_ftrace_filter()
264 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
265 if (!q) in trace_boot_set_ftrace_filter()
267 if (ftrace_set_notrace(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
271 kfree(q); in trace_boot_set_ftrace_filter()
Dtrace_events_filter.c1233 char q; in parse_pred() local
1322 q = str[i]; in parse_pred()
1324 q = 0; in parse_pred()
1327 if (q && str[i] == q) in parse_pred()
1329 if (!q && (str[i] == ')' || str[i] == '&' || in parse_pred()
1334 if (q) in parse_pred()
1348 char q = str[i]; in parse_pred() local
1370 if (str[i] == q) in parse_pred()
Dtrace_events_inject.c105 char q = str[i]; in parse_field() local
116 if (str[i] == q) in parse_field()
/kernel/futex/
Dcore.c1459 static void __unqueue_futex(struct futex_q *q) in __unqueue_futex() argument
1463 if (WARN_ON_SMP(!q->lock_ptr) || WARN_ON(plist_node_empty(&q->list))) in __unqueue_futex()
1465 lockdep_assert_held(q->lock_ptr); in __unqueue_futex()
1467 hb = container_of(q->lock_ptr, struct futex_hash_bucket, lock); in __unqueue_futex()
1468 plist_del(&q->list, &hb->chain); in __unqueue_futex()
1478 static void mark_wake_futex(struct wake_q_head *wake_q, struct futex_q *q) in mark_wake_futex() argument
1480 struct task_struct *p = q->task; in mark_wake_futex()
1482 if (WARN(q->pi_state || q->rt_waiter, "refusing to wake PI futex\n")) in mark_wake_futex()
1486 __unqueue_futex(q); in mark_wake_futex()
1494 smp_store_release(&q->lock_ptr, NULL); in mark_wake_futex()
[all …]
/kernel/
Dlatencytop.c97 int q, same = 1; in account_global_scheduler_latency() local
105 for (q = 0; q < LT_BACKTRACEDEPTH; q++) { in account_global_scheduler_latency()
106 unsigned long record = lat->backtrace[q]; in account_global_scheduler_latency()
108 if (latency_record[i].backtrace[q] != record) { in account_global_scheduler_latency()
154 int i, q; in __account_scheduler_latency() local
182 for (q = 0; q < LT_BACKTRACEDEPTH; q++) { in __account_scheduler_latency()
183 unsigned long record = lat.backtrace[q]; in __account_scheduler_latency()
185 if (mylat->backtrace[q] != record) { in __account_scheduler_latency()
227 int q; in lstats_show() local
230 for (q = 0; q < LT_BACKTRACEDEPTH; q++) { in lstats_show()
[all …]
Dsignal.c418 struct sigqueue *q = NULL; in __sigqueue_alloc() local
438 q = kmem_cache_alloc(sigqueue_cachep, flags); in __sigqueue_alloc()
443 if (unlikely(q == NULL)) { in __sigqueue_alloc()
447 INIT_LIST_HEAD(&q->list); in __sigqueue_alloc()
448 q->flags = 0; in __sigqueue_alloc()
449 q->user = user; in __sigqueue_alloc()
452 return q; in __sigqueue_alloc()
455 static void __sigqueue_free(struct sigqueue *q) in __sigqueue_free() argument
457 if (q->flags & SIGQUEUE_PREALLOC) in __sigqueue_free()
459 if (atomic_dec_and_test(&q->user->sigpending)) in __sigqueue_free()
[all …]
Dwatch_queue.c319 struct watch_type_filter *q; in watch_queue_set_filter() local
365 q = wfilter->filters; in watch_queue_set_filter()
370 q->type = tf[i].type; in watch_queue_set_filter()
371 q->info_filter = tf[i].info_filter; in watch_queue_set_filter()
372 q->info_mask = tf[i].info_mask; in watch_queue_set_filter()
373 q->subtype_filter[0] = tf[i].subtype_filter[0]; in watch_queue_set_filter()
374 __set_bit(q->type, wfilter->type_filter); in watch_queue_set_filter()
375 q++; in watch_queue_set_filter()
Dcrash_core.c198 char *q; in get_last_crashkernel() local
208 q = end_p - strlen(suffix_tbl[i]); in get_last_crashkernel()
209 if (!strncmp(q, suffix_tbl[i], in get_last_crashkernel()
215 q = end_p - strlen(suffix); in get_last_crashkernel()
216 if (!strncmp(q, suffix, strlen(suffix))) in get_last_crashkernel()
Dauditsc.c280 struct audit_tree_refs *q; in unroll_tree_refs() local
291 for (q = p; q != ctx->trees; q = q->next, n = 31) { in unroll_tree_refs()
293 audit_put_chunk(q->c[n]); in unroll_tree_refs()
294 q->c[n] = NULL; in unroll_tree_refs()
298 audit_put_chunk(q->c[n]); in unroll_tree_refs()
299 q->c[n] = NULL; in unroll_tree_refs()
307 struct audit_tree_refs *p, *q; in free_tree_refs() local
308 for (p = ctx->first_trees; p; p = q) { in free_tree_refs()
309 q = p->next; in free_tree_refs()
Dauditfilter.c1069 static void audit_list_rules(int seq, struct sk_buff_head *q) in audit_list_rules() argument
1088 skb_queue_tail(q, skb); in audit_list_rules()
1094 skb_queue_tail(q, skb); in audit_list_rules()
1178 skb_queue_head_init(&dest->q); in audit_list_rules_send()
1181 audit_list_rules(seq, &dest->q); in audit_list_rules_send()
1186 skb_queue_purge(&dest->q); in audit_list_rules_send()
Daudit_tree.c611 struct list_head *p, *q; in trim_marked() local
618 for (p = tree->chunks.next; p != &tree->chunks; p = q) { in trim_marked()
620 q = p->next; in trim_marked()
Dptrace.c739 struct sigqueue *q; in ptrace_peek_siginfo() local
768 list_for_each_entry(q, &pending->list, list) { in ptrace_peek_siginfo()
771 copy_siginfo(&info, &q->info); in ptrace_peek_siginfo()
Daudit.h233 struct sk_buff_head q; member
Daudit.c931 while ((skb = __skb_dequeue(&dest->q)) != NULL) in audit_send_list_thread()
/kernel/cgroup/
Dpids.c146 struct pids_cgroup *p, *q; in pids_try_charge() local
164 for (q = pids; q != p; q = parent_pids(q)) in pids_try_charge()
165 pids_cancel(q, num); in pids_try_charge()
Dcpuset.c488 static int is_cpuset_subset(const struct cpuset *p, const struct cpuset *q) in is_cpuset_subset() argument
490 return cpumask_subset(p->cpus_requested, q->cpus_requested) && in is_cpuset_subset()
491 nodes_subset(p->mems_allowed, q->mems_allowed) && in is_cpuset_subset()
492 is_cpu_exclusive(p) <= is_cpu_exclusive(q) && in is_cpuset_subset()
493 is_mem_exclusive(p) <= is_mem_exclusive(q); in is_cpuset_subset()
/kernel/bpf/
Dcpumap.c45 void *q[CPU_MAP_BULK_SIZE]; member
675 struct ptr_ring *q; in bq_flush_to_queue() local
681 q = rcpu->queue; in bq_flush_to_queue()
682 spin_lock(&q->producer_lock); in bq_flush_to_queue()
685 struct xdp_frame *xdpf = bq->q[i]; in bq_flush_to_queue()
688 err = __ptr_ring_produce(q, xdpf); in bq_flush_to_queue()
696 spin_unlock(&q->producer_lock); in bq_flush_to_queue()
724 bq->q[bq->count++] = xdpf; in bq_enqueue()
Ddevmap.c56 struct xdp_frame *q[DEV_MAP_BULK_SIZE]; member
354 struct xdp_frame *xdpf = bq->q[i]; in bq_xmit_all()
359 sent = dev->netdev_ops->ndo_xdp_xmit(dev, bq->count, bq->q, flags); in bq_xmit_all()
378 struct xdp_frame *xdpf = bq->q[i]; in bq_xmit_all()
440 bq->q[bq->count++] = xdpf; in bq_enqueue()
/kernel/time/
Dtimeconst.bc55 print "#error \qinclude/generated/timeconst.h has the wrong HZ value!\q\n"
/kernel/events/
Duprobes.c324 struct list_head *pos, *q; in delayed_uprobe_remove() local
330 list_for_each_safe(pos, q, &delayed_uprobe_list) { in delayed_uprobe_remove()
1330 struct list_head *pos, *q; in delayed_ref_ctr_inc() local
1336 list_for_each_safe(pos, q, &delayed_uprobe_list) { in delayed_ref_ctr_inc()