/kernel/ |
D | pid.c | 245 enum pid_type type; in alloc_pid() local 268 for (type = 0; type < PIDTYPE_MAX; ++type) in alloc_pid() 269 INIT_HLIST_HEAD(&pid->tasks[type]); in alloc_pid() 315 void attach_pid(struct task_struct *task, enum pid_type type, in attach_pid() argument 320 link = &task->pids[type]; in attach_pid() 322 hlist_add_head_rcu(&link->node, &pid->tasks[type]); in attach_pid() 325 static void __change_pid(struct task_struct *task, enum pid_type type, in __change_pid() argument 332 link = &task->pids[type]; in __change_pid() 345 void detach_pid(struct task_struct *task, enum pid_type type) in detach_pid() argument 347 __change_pid(task, type, NULL); in detach_pid() [all …]
|
D | exit.c | 1209 static struct pid *task_pid_type(struct task_struct *task, enum pid_type type) in task_pid_type() argument 1212 if (type == PIDTYPE_PID) in task_pid_type() 1213 pid = task->pids[type].pid; in task_pid_type() 1214 else if (type < PIDTYPE_MAX) in task_pid_type() 1215 pid = task->group_leader->pids[type].pid; in task_pid_type() 1219 static int eligible_child(enum pid_type type, struct pid *pid, int options, in eligible_child() argument 1224 if (type < PIDTYPE_MAX) { in eligible_child() 1225 if (task_pid_type(p, type) != pid) in eligible_child() 1584 enum pid_type type, struct pid *pid, int options, in wait_consider_task() argument 1588 int ret = eligible_child(type, pid, options, p); in wait_consider_task() [all …]
|
D | kallsyms.c | 343 char type; member 352 &iter->type, iter->name, iter->module_name, in get_ksymbol_mod() 366 iter->type = kallsyms_get_symbol_type(off); in get_ksymbol_core() 428 char type; in s_show() local 432 type = iter->exported ? toupper(iter->type) : in s_show() 433 tolower(iter->type); in s_show() 436 iter->value, type, iter->name, iter->module_name); in s_show() 440 iter->value, iter->type, iter->name); in s_show()
|
D | rcupdate.c | 106 static void rcu_barrier_func(void *type) in rcu_barrier_func() argument 112 switch ((enum rcu_barrier)type) { in rcu_barrier_func() 129 static void _rcu_barrier(enum rcu_barrier type) in _rcu_barrier() argument 145 on_each_cpu(rcu_barrier_func, (void *)type, 1); in _rcu_barrier()
|
D | profile.c | 177 int profile_event_register(enum profile_type type, struct notifier_block *n) in profile_event_register() argument 181 switch (type) { in profile_event_register() 196 int profile_event_unregister(enum profile_type type, struct notifier_block *n) in profile_event_unregister() argument 200 switch (type) { in profile_event_unregister() 311 void profile_hits(int type, void *__pc, unsigned int nr_hits) in profile_hits() argument 317 if (prof_on != type || !prof_buffer) in profile_hits() 425 void profile_hits(int type, void *__pc, unsigned int nr_hits) in profile_hits() argument 429 if (prof_on != type || !prof_buffer) in profile_hits() 437 void profile_tick(int type) in profile_tick() argument 441 if (type == CPU_PROFILING && timer_hook) in profile_tick() [all …]
|
D | taskstats.c | 51 [TASKSTATS_CMD_ATTR_PID] = { .type = NLA_U32 }, 52 [TASKSTATS_CMD_ATTR_TGID] = { .type = NLA_U32 }, 53 [TASKSTATS_CMD_ATTR_REGISTER_CPUMASK] = { .type = NLA_STRING }, 54 [TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK] = { .type = NLA_STRING },}; 58 [CGROUPSTATS_CMD_ATTR_FD] = { .type = NLA_U32 }, 359 static struct taskstats *mk_reply(struct sk_buff *skb, int type, u32 pid) in mk_reply() argument 364 aggr = (type == TASKSTATS_TYPE_PID) in mk_reply() 371 if (nla_put(skb, type, sizeof(pid), &pid) < 0) in mk_reply()
|
D | auditfilter.c | 474 f->type = rule->fields[i] & ~(AUDIT_NEGATE|AUDIT_OPERATORS); in audit_rule_to_entry() 481 switch(f->type) { in audit_rule_to_entry() 569 f->type = data->fields[i]; in audit_data_to_entry() 573 switch(f->type) { in audit_data_to_entry() 614 err = security_audit_rule_init(f->type, f->op, str, in audit_data_to_entry() 718 rule->fields[i] = krule->fields[i].type; in audit_krule_to_rule() 751 data->fields[i] = f->type; in audit_krule_to_data() 753 switch(f->type) { in audit_krule_to_data() 802 if (a->fields[i].type != b->fields[i].type || in audit_compare_rule() 806 switch(a->fields[i].type) { in audit_compare_rule() [all …]
|
D | auditsc.c | 119 int type; member 202 int type; member 448 switch (f->type) { in audit_filter_rules() 570 result = security_audit_rule_match(sid, f->type, in audit_filter_rules() 587 name->osid, f->type, f->op, in audit_filter_rules() 593 f->type, f->op, in audit_filter_rules() 601 if (!ctx || ctx->type != AUDIT_IPC) in audit_filter_rules() 604 f->type, f->op, in audit_filter_rules() 614 result = audit_comparator(ctx->argv[f->type-AUDIT_ARG0], f->op, f->val); in audit_filter_rules() 1226 ab = audit_log_start(context, GFP_KERNEL, context->type); in show_special() [all …]
|
D | audit.c | 513 struct sk_buff *audit_make_reply(int pid, int seq, int type, int done, in audit_make_reply() argument 521 int t = done ? NLMSG_DONE : type; in audit_make_reply() 565 void audit_send_reply(int pid, int seq, int type, int done, int multi, in audit_send_reply() argument 576 skb = audit_make_reply(pid, seq, type, done, multi, payload, size); in audit_send_reply() 1049 gfp_t gfp_mask, int type) in audit_buffer_alloc() argument 1077 nlh->nlmsg_type = type; in audit_buffer_alloc() 1153 int type) in audit_log_start() argument 1164 if (unlikely(audit_filter_type(type))) in audit_log_start() 1203 ab = audit_buffer_alloc(ctx, gfp_mask, type); in audit_log_start() 1502 void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, in audit_log() argument [all …]
|
D | audit.h | 96 extern struct sk_buff * audit_make_reply(int pid, int seq, int type, 99 extern void audit_send_reply(int pid, int seq, int type,
|
D | cpuset.c | 1433 cpuset_filetype_t type = cft->private; in cpuset_write_u64() local 1438 switch (type) { in cpuset_write_u64() 1480 cpuset_filetype_t type = cft->private; in cpuset_write_s64() local 1485 switch (type) { in cpuset_write_s64() 1572 cpuset_filetype_t type = cft->private; in cpuset_common_file_read() local 1582 switch (type) { in cpuset_common_file_read() 1604 cpuset_filetype_t type = cft->private; in cpuset_read_u64() local 1605 switch (type) { in cpuset_read_u64() 1635 cpuset_filetype_t type = cft->private; in cpuset_read_s64() local 1636 switch (type) { in cpuset_read_s64()
|
D | printk.c | 300 int do_syslog(int type, char __user *buf, int len) in do_syslog() argument 307 error = security_syslog(type); in do_syslog() 311 switch (type) { in do_syslog() 435 SYSCALL_DEFINE3(syslog, int, type, char __user *, buf, int, len) in SYSCALL_DEFINE3() argument 437 return do_syslog(type, buf, len); in SYSCALL_DEFINE3()
|
D | kexec.c | 137 image->type = KEXEC_TYPE_DEFAULT; in do_kimage_alloc() 292 image->type = KEXEC_TYPE_CRASH; in kimage_crash_alloc() 531 switch (image->type) { in kimage_alloc_control_pages() 900 switch (image->type) { in kimage_load_segment() 1085 static u32 *append_elf_note(u32 *buf, char *name, unsigned type, void *data, in append_elf_note() argument 1092 note.n_type = type; in append_elf_note()
|
D | params.c | 180 #define STANDARD_PARAM_DEF(name, type, format, tmptype, strtolfn) \ argument 188 if (ret == -EINVAL || ((type)l != l)) \ 190 *((type *)kp->arg) = l; \ 195 return sprintf(buffer, format, *((type *)kp->arg)); \
|
/kernel/power/ |
D | wakelock.c | 133 int type; in wakelocks_read_proc() local 143 for (type = 0; type < WAKE_LOCK_TYPE_COUNT; type++) { in wakelocks_read_proc() 144 list_for_each_entry(lock, &active_wake_locks[type], link) in wakelocks_read_proc() 226 static void print_active_locks(int type) in print_active_locks() argument 231 BUG_ON(type >= WAKE_LOCK_TYPE_COUNT); in print_active_locks() 232 list_for_each_entry(lock, &active_wake_locks[type], link) { in print_active_locks() 245 static long has_wake_lock_locked(int type) in has_wake_lock_locked() argument 250 BUG_ON(type >= WAKE_LOCK_TYPE_COUNT); in has_wake_lock_locked() 251 list_for_each_entry_safe(lock, n, &active_wake_locks[type], link) { in has_wake_lock_locked() 264 long has_wake_lock(int type) in has_wake_lock() argument [all …]
|
/kernel/trace/ |
D | trace_power.c | 62 if (entry->type == TRACE_POWER) { in power_print_line() 63 if (it->type == POWER_CSTATE) in power_print_line() 70 if (it->type == POWER_PSTATE) in power_print_line() 98 void trace_power_start(struct power_trace *it, unsigned int type, in trace_power_start() argument 106 it->type = type; in trace_power_start() 133 entry->ent.type = TRACE_POWER; in trace_power_end() 144 void trace_power_mark(struct power_trace *it, unsigned int type, in trace_power_mark() argument 158 it->type = type; in trace_power_mark() 170 entry->ent.type = TRACE_POWER; in trace_power_mark()
|
D | trace.c | 558 int register_tracer(struct tracer *type) argument 564 if (!type->name) { 581 if (strcmp(type->name, t->name) == 0) { 584 type->name); 590 if (!type->set_flag) 591 type->set_flag = &dummy_set_flag; 592 if (!type->flags) 593 type->flags = &dummy_tracer_flags; 595 if (!type->flags->opts) 596 type->flags->opts = dummy_tracer_opt; [all …]
|
D | trace.h | 44 unsigned char type; member 127 unsigned char type; member 234 #define FTRACE_CMP_TYPE(var, type) \ argument 235 __builtin_types_compatible_p(typeof(var), type *) 241 WARN_ON(id && (entry)->type != id); \ 425 int register_tracer(struct tracer *type); 426 void unregister_tracer(struct tracer *type);
|
D | ring_buffer.c | 141 switch (event->type) { in rb_event_length() 172 if (event->type != RINGBUF_TYPE_DATA) in ring_buffer_event_length() 185 BUG_ON(event->type != RINGBUF_TYPE_DATA); in rb_event_data() 709 return event->type == RINGBUF_TYPE_PADDING; in rb_null_event() 788 if (event->type != RINGBUF_TYPE_DATA) in rb_update_overflow() 931 unsigned type, unsigned length) in rb_update_event() argument 933 event->type = type; in rb_update_event() 935 switch (type) { in rb_update_event() 986 unsigned type, unsigned long length, u64 *ts) in __rb_reserve_next() argument 1063 event->type = RINGBUF_TYPE_PADDING; in __rb_reserve_next() [all …]
|
D | trace_boot.c | 109 switch (entry->type) { in initcall_print_line() 149 entry->ent.type = TRACE_BOOT_CALL; in trace_boot_call() 178 entry->ent.type = TRACE_BOOT_RET; in trace_boot_ret()
|
D | trace_hw_branches.c | 93 if (entry->type == TRACE_HW_BRANCHES) { in bts_trace_print_line() 117 entry->ent.type = TRACE_HW_BRANCHES; in trace_hw_branch()
|
D | trace_functions_graph.c | 224 if (next->ent.type != TRACE_GRAPH_RET) in trace_branch_is_leaf() 236 enum trace_type type, int cpu, pid_t pid) in print_graph_irq() argument 244 if (type == TRACE_GRAPH_ENT) { in print_graph_irq() 609 switch (entry->type) { in print_graph_function()
|
D | trace_mmiotrace.c | 275 switch (iter->ent->type) { in mmio_print_line() 321 entry->ent.type = TRACE_MMIO_RW; in __trace_mmiotrace_rw() 351 entry->ent.type = TRACE_MMIO_MAP; in __trace_mmiotrace_map()
|
D | ftrace.c | 943 unsigned long type = enable ? FTRACE_FL_FILTER : FTRACE_FL_NOTRACE; in ftrace_filter_reset() local 956 rec->flags &= ~type; in ftrace_filter_reset() 1048 int type = MATCH_FULL; in ftrace_match() local 1063 type = MATCH_END_ONLY; in ftrace_match() 1066 if (type == MATCH_END_ONLY) { in ftrace_match() 1067 type = MATCH_MIDDLE_ONLY; in ftrace_match() 1070 type = MATCH_FRONT_ONLY; in ftrace_match() 1092 switch (type) { in ftrace_match()
|
/kernel/irq/ |
D | chip.c | 117 int set_irq_type(unsigned int irq, unsigned int type) in set_irq_type() argument 128 type &= IRQ_TYPE_SENSE_MASK; in set_irq_type() 129 if (type == IRQ_TYPE_NONE) in set_irq_type() 133 ret = __irq_set_trigger(desc, irq, type); in set_irq_type()
|