Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 62) sorted by relevance

123

/kernel/
Daudit_watch.c41 struct audit_parent *parent; /* associated parent */ member
58 static void audit_free_parent(struct audit_parent *parent) in audit_free_parent() argument
60 WARN_ON(!list_empty(&parent->watches)); in audit_free_parent()
61 kfree(parent); in audit_free_parent()
66 struct audit_parent *parent; in audit_watch_free_mark() local
68 parent = container_of(entry, struct audit_parent, mark); in audit_watch_free_mark()
69 audit_free_parent(parent); in audit_watch_free_mark()
72 static void audit_get_parent(struct audit_parent *parent) in audit_get_parent() argument
74 if (likely(parent)) in audit_get_parent()
75 fsnotify_get_mark(&parent->mark); in audit_get_parent()
[all …]
Dresource.c63 while (!p->sibling && p->parent) in next_resource()
64 p = p->parent; in next_resource()
104 for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent) in r_show()
105 if (p->parent == root) in r_show()
177 new->parent = root; in __request_resource()
191 p = &old->parent->child; in __release_resource()
201 chd->parent = tmp->parent; in __release_resource()
208 old->parent = NULL; in __release_resource()
227 tmp->parent = NULL; in __release_child_resources()
354 .parent = p->parent, in find_next_iomem_res()
[all …]
Duser_namespace.c129 ns->parent = parent_ns; in create_user_ns()
193 struct user_namespace *parent, *ns = in free_user_ns() local
198 parent = ns->parent; in free_user_ns()
216 ns = parent; in free_user_ns()
217 } while (refcount_dec_and_test(&parent->ns.count)); in free_user_ns()
602 if ((lower_ns == ns) && lower_ns->parent) in uid_m_show()
603 lower_ns = lower_ns->parent; in uid_m_show()
623 if ((lower_ns == ns) && lower_ns->parent) in gid_m_show()
624 lower_ns = lower_ns->parent; in gid_m_show()
644 if ((lower_ns == ns) && lower_ns->parent) in projid_m_show()
[all …]
Dpid_namespace.c108 ns->parent = get_pid_ns(parent_pid_ns); in create_pid_namespace()
154 struct pid_namespace *parent; in put_pid_ns() local
157 parent = ns->parent; in put_pid_ns()
161 ns = parent; in put_pid_ns()
415 ancestor = ancestor->parent; in pidns_install()
430 pid_ns = p = to_pid_ns(ns)->parent; in pidns_get_parent()
436 p = p->parent; in pidns_get_parent()
Dexit.c365 kill_orphaned_pgrp(struct task_struct *tsk, struct task_struct *parent) in kill_orphaned_pgrp() argument
370 if (!parent) in kill_orphaned_pgrp()
374 parent = tsk->real_parent; in kill_orphaned_pgrp()
381 if (task_pgrp(parent) != pgrp && in kill_orphaned_pgrp()
382 task_session(parent) == task_session(tsk) && in kill_orphaned_pgrp()
689 BUG_ON((!t->ptrace) != (rcu_access_pointer(t->parent) == father)); in forget_original_parent()
691 t->parent = t->real_parent; in forget_original_parent()
1505 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) in child_wait_callback()
1511 void __wake_up_parent(struct task_struct *p, struct task_struct *parent) in __wake_up_parent() argument
1513 __wake_up_sync_key(&parent->signal->wait_chldexit, in __wake_up_parent()
[all …]
Drelay.c363 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
478 struct dentry *parent, in relay_open() argument
509 chan->parent = parent; in relay_open()
572 struct dentry *parent) in relay_late_setup_files() argument
593 chan->parent = parent; in relay_late_setup_files()
Dsignal.c2049 if (tsk->parent_exec_id != READ_ONCE(tsk->parent->self_exec_id)) in do_notify_parent()
2068 info.si_pid = task_pid_nr_ns(tsk, task_active_pid_ns(tsk->parent)); in do_notify_parent()
2069 info.si_uid = from_kuid_munged(task_cred_xxx(tsk->parent, user_ns), in do_notify_parent()
2087 psig = tsk->parent->sighand; in do_notify_parent()
2116 __send_signal(sig, &info, tsk->parent, PIDTYPE_TGID, false); in do_notify_parent()
2117 __wake_up_parent(tsk, tsk->parent); in do_notify_parent()
2141 struct task_struct *parent; in do_notify_parent_cldstop() local
2146 parent = tsk->parent; in do_notify_parent_cldstop()
2149 parent = tsk->real_parent; in do_notify_parent_cldstop()
2159 info.si_pid = task_pid_nr_ns(tsk, task_active_pid_ns(parent)); in do_notify_parent_cldstop()
[all …]
/kernel/gcov/
Dfs.c56 struct gcov_node *parent; member
476 static void add_links(struct gcov_node *node, struct dentry *parent) in add_links() argument
498 parent, target); in add_links()
521 const char *name, struct gcov_node *parent) in init_node() argument
530 node->parent = parent; in init_node()
539 static struct gcov_node *new_node(struct gcov_node *parent, in new_node() argument
553 init_node(node, info, name, parent); in new_node()
557 parent->dentry, node, &gcov_data_fops); in new_node()
559 node->dentry = debugfs_create_dir(node->name, parent->dentry); in new_node()
561 add_links(node, parent->dentry); in new_node()
[all …]
/kernel/cgroup/
Dcpuset.c221 return css_cs(cs->css.parent); in parent_cs()
1168 struct cpuset *cs, struct cpuset *parent) in compute_effective_cpumask() argument
1170 if (parent->nr_subparts_cpus) { in compute_effective_cpumask()
1171 cpumask_or(new_cpus, parent->effective_cpus, in compute_effective_cpumask()
1172 parent->subparts_cpus); in compute_effective_cpumask()
1235 struct cpuset *parent = parent_cs(cpuset); in update_parent_subparts_cpumask() local
1248 if (!is_partition_root(parent) || in update_parent_subparts_cpumask()
1266 (!cpumask_subset(cpuset->cpus_allowed, parent->effective_cpus) || in update_parent_subparts_cpumask()
1267 cpumask_equal(cpuset->cpus_allowed, parent->effective_cpus))) in update_parent_subparts_cpumask()
1280 parent->subparts_cpus); in update_parent_subparts_cpumask()
[all …]
Drstat.c46 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_rstat_updated() local
57 if (!parent) { in cgroup_rstat_updated()
62 prstatc = cgroup_rstat_cpu(parent, cpu); in cgroup_rstat_updated()
66 cgrp = parent; in cgroup_rstat_updated()
119 struct cgroup *parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated() local
121 if (parent) { in cgroup_rstat_cpu_pop_updated()
125 prstatc = cgroup_rstat_cpu(parent, cpu); in cgroup_rstat_cpu_pop_updated()
133 WARN_ON_ONCE(*nextp == parent); in cgroup_rstat_cpu_pop_updated()
320 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_base_stat_flush() local
325 if (!parent) in cgroup_base_stat_flush()
[all …]
Dlegacy_freezer.c62 return css_freezer(freezer->css.parent); in parent_freezer()
108 struct freezer *parent = parent_freezer(freezer); in freezer_css_online() local
114 if (parent && (parent->state & CGROUP_FREEZING)) { in freezer_css_online()
398 struct freezer *parent = parent_freezer(pos_f); in freezer_change_state() local
409 parent->state & CGROUP_FREEZING, in freezer_change_state()
Dcgroup.c438 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_control() local
441 if (parent) { in cgroup_control()
442 u16 ss_mask = parent->subtree_control; in cgroup_control()
459 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_ss_mask() local
461 if (parent) { in cgroup_ss_mask()
462 u16 ss_mask = parent->subtree_ss_mask; in cgroup_ss_mask()
657 struct cgroup *cgrp = of->kn->parent->priv; in of_css()
1595 cgrp = kn->parent->priv; in cgroup_kn_unlock()
1627 cgrp = kn->parent->priv; in cgroup_kn_lock_live()
3248 if (css->parent && in cgroup_apply_control_disable()
[all …]
/kernel/bpf/
Dlpm_trie.c441 struct lpm_trie_node *node, *parent; in trie_delete_elem() local
460 parent = NULL; in trie_delete_elem()
469 parent = node; in trie_delete_elem()
500 if (parent && (parent->flags & LPM_TREE_NODE_FLAG_IM) && in trie_delete_elem()
502 if (node == rcu_access_pointer(parent->child[0])) in trie_delete_elem()
504 *trim2, rcu_access_pointer(parent->child[1])); in trie_delete_elem()
507 *trim2, rcu_access_pointer(parent->child[0])); in trie_delete_elem()
508 kfree_rcu(parent, rcu); in trie_delete_elem()
619 struct lpm_trie_node *node, *next_node = NULL, *parent, *search_root; in trie_get_next_key() local
673 parent = node_stack[stack_ptr - 1]; in trie_get_next_key()
[all …]
Dinode.c418 static int bpf_iter_link_pin_kernel(struct dentry *parent, in bpf_iter_link_pin_kernel() argument
425 inode_lock(parent->d_inode); in bpf_iter_link_pin_kernel()
426 dentry = lookup_one_len(name, parent, strlen(name)); in bpf_iter_link_pin_kernel()
428 inode_unlock(parent->d_inode); in bpf_iter_link_pin_kernel()
434 inode_unlock(parent->d_inode); in bpf_iter_link_pin_kernel()
710 static int populate_bpffs(struct dentry *parent) in populate_bpffs() argument
738 err = bpf_iter_link_pin_kernel(parent, in populate_bpffs()
/kernel/sched/
Dtopology.c68 if ((meta_flags & SDF_SHARED_PARENT) && sd->parent && in sched_domain_debug_one()
69 !(sd->parent->flags & flag)) in sched_domain_debug_one()
129 if (sd->parent && in sched_domain_debug_one()
130 !cpumask_subset(groupmask, sched_domain_span(sd->parent))) in sched_domain_debug_one()
153 sd = sd->parent; in sched_domain_debug()
193 sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) in sd_parent_degenerate() argument
195 unsigned long cflags = sd->flags, pflags = parent->flags; in sd_parent_degenerate()
197 if (sd_degenerate(parent)) in sd_parent_degenerate()
200 if (!cpumask_equal(sched_domain_span(sd), sched_domain_span(parent))) in sd_parent_degenerate()
204 if (parent->groups == parent->groups->next) in sd_parent_degenerate()
[all …]
Dcpudeadline.c11 static inline int parent(int i) in parent() function
80 p = parent(idx); in cpudl_heapify_up()
97 if (idx > 0 && dl_time_before(cp->elements[parent(idx)].dl, in cpudl_heapify()
Dcore.c1199 struct task_group *parent, *child; in walk_tg_tree_from() local
1202 parent = from; in walk_tg_tree_from()
1205 ret = (*down)(parent, data); in walk_tg_tree_from()
1208 list_for_each_entry_rcu(child, &parent->children, siblings) { in walk_tg_tree_from()
1209 parent = child; in walk_tg_tree_from()
1215 ret = (*up)(parent, data); in walk_tg_tree_from()
1216 if (ret || parent == from) in walk_tg_tree_from()
1219 child = parent; in walk_tg_tree_from()
1220 parent = parent->parent; in walk_tg_tree_from()
1221 if (parent) in walk_tg_tree_from()
[all …]
/kernel/power/
Dwakeup_reason.c175 struct wakeup_irq_node *parent; in log_threaded_irq_wakeup_reason() local
200 parent = find_node_in_list(&parent_irqs, parent_irq); in log_threaded_irq_wakeup_reason()
201 if (parent != NULL) in log_threaded_irq_wakeup_reason()
204 parent = find_node_in_list(&leaf_irqs, parent_irq); in log_threaded_irq_wakeup_reason()
205 if (parent != NULL) { in log_threaded_irq_wakeup_reason()
206 list_del_init(&parent->siblings); in log_threaded_irq_wakeup_reason()
207 list_add_tail(&parent->siblings, &parent_irqs); in log_threaded_irq_wakeup_reason()
Dwakelock.c151 struct rb_node *parent = *node; in wakelock_lookup_add() local
157 parent = *node; in wakelock_lookup_add()
196 rb_link_node(&wl->node, parent, node); in wakelock_lookup_add()
/kernel/irq/
Dirqdomain.c1152 struct irq_domain *irq_domain_create_hierarchy(struct irq_domain *parent, in irq_domain_create_hierarchy() argument
1167 domain->parent = parent; in irq_domain_create_hierarchy()
1336 struct irq_domain *parent; in irq_domain_alloc_irq_data() local
1344 for (parent = domain->parent; parent; parent = parent->parent) { in irq_domain_alloc_irq_data()
1345 irq_data = irq_domain_insert_irq_data(parent, irq_data); in irq_domain_alloc_irq_data()
1639 if (domain->parent != root_irq_data->domain) in irq_domain_push_irq()
1786 if (!domain->parent) in irq_domain_alloc_irqs_parent()
1789 return irq_domain_alloc_irqs_hierarchy(domain->parent, irq_base, in irq_domain_alloc_irqs_parent()
1803 if (!domain->parent) in irq_domain_free_irqs_parent()
1806 irq_domain_free_irqs_hierarchy(domain->parent, irq_base, nr_irqs); in irq_domain_free_irqs_parent()
[all …]
Dmsi.c242 struct irq_data *parent = irq_data->parent_data; in msi_domain_set_affinity() local
246 ret = parent->chip->irq_set_affinity(parent, mask, force); in msi_domain_set_affinity()
287 if (domain->parent) { in msi_domain_alloc()
427 struct irq_domain *parent) in msi_create_irq_domain() argument
435 domain = irq_domain_create_hierarchy(parent, IRQ_DOMAIN_FLAG_MSI, 0, in msi_create_irq_domain()
/kernel/events/
Dcore.c271 if (!event->parent) { in event_function_call()
771 for (css = &cgrp->css; css; css = css->parent) { in update_cgrp_time_from_cpuctx()
822 for (css = &cgrp->css; css; css = css->parent) { in perf_cgroup_set_timestamp()
952 for (heap_size = 1; css; css = css->parent) in perf_cgroup_ensure_storage()
1442 if (event->parent) in perf_event_pid_type()
1443 event = event->parent; in perf_event_pid_type()
1470 if (event->parent) in primary_event_id()
1471 id = event->parent->id; in primary_event_id()
2298 struct perf_event *parent_event = event->parent; in perf_child_detach()
3517 struct perf_event_context *parent, *next_parent; in perf_event_context_sched_out() local
[all …]
/kernel/trace/
Dtrace_stat.c77 struct rb_node **new = &(root->rb_node), *parent = NULL; in insert_stat() local
96 parent = *new; in insert_stat()
103 rb_link_node(&data->node, parent, new); in insert_stat()
/kernel/rcu/
Dtree_exp.h110 rnp_up = rnp->parent; in sync_exp_reset_tree_hotplug()
121 rnp_up = rnp_up->parent; in sync_exp_reset_tree_hotplug()
197 if (rnp->parent == NULL) { in __rcu_report_exp_rnp()
207 rnp = rnp->parent; in __rcu_report_exp_rnp()
300 for (; rnp != NULL; rnp = rnp->parent) { in exp_funnel_lock()
/kernel/locking/
Dlockdep.c1479 struct lock_list *parent) in visit_lock_entry() argument
1481 lock->parent = parent; in visit_lock_entry()
1491 return child->parent; in get_lock_parent()
1497 struct lock_list *parent; in get_lock_depth() local
1499 while ((parent = get_lock_parent(child))) { in get_lock_depth()
1500 child = parent; in get_lock_depth()
1609 lock->parent = NULL; in __bfs_init_root()
1644 if (!lock || !lock->parent) in __bfs_next()
1647 return list_next_or_null_rcu(get_dep_list(lock->parent, offset), in __bfs_next()
1719 if (lock->parent) { /* Parent exists, check prev dependency */ in __bfs()
[all …]

123