Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 65) 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()
70 while (!p->sibling && p->parent) in next_resource_skip_children()
71 p = p->parent; in next_resource_skip_children()
116 for (depth = 0, p = r; depth < MAX_IORES_LEVEL; depth++, p = p->parent) in r_show()
117 if (p->parent == root) in r_show()
189 new->parent = root; in __request_resource()
203 p = &old->parent->child; in __release_resource()
213 chd->parent = tmp->parent; in __release_resource()
220 old->parent = NULL; in __release_resource()
[all …]
Duser_namespace.c134 ns->parent = parent_ns; in create_user_ns()
198 struct user_namespace *parent, *ns = in free_user_ns() local
203 parent = ns->parent; in free_user_ns()
221 ns = parent; in free_user_ns()
222 } while (refcount_dec_and_test(&parent->ns.count)); in free_user_ns()
607 if ((lower_ns == ns) && lower_ns->parent) in uid_m_show()
608 lower_ns = lower_ns->parent; in uid_m_show()
628 if ((lower_ns == ns) && lower_ns->parent) in gid_m_show()
629 lower_ns = lower_ns->parent; in gid_m_show()
649 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.c375 kill_orphaned_pgrp(struct task_struct *tsk, struct task_struct *parent) in kill_orphaned_pgrp() argument
380 if (!parent) in kill_orphaned_pgrp()
384 parent = tsk->real_parent; in kill_orphaned_pgrp()
391 if (task_pgrp(parent) != pgrp && in kill_orphaned_pgrp()
392 task_session(parent) == task_session(tsk) && in kill_orphaned_pgrp()
704 BUG_ON((!t->ptrace) != (rcu_access_pointer(t->parent) == father)); in forget_original_parent()
706 t->parent = t->real_parent; in forget_original_parent()
1534 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) in child_wait_callback()
1540 void __wake_up_parent(struct task_struct *p, struct task_struct *parent) in __wake_up_parent() argument
1542 __wake_up_sync_key(&parent->signal->wait_chldexit, in __wake_up_parent()
[all …]
Drelay.c360 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
475 struct dentry *parent, in relay_open() argument
506 chan->parent = parent; in relay_open()
569 struct dentry *parent) in relay_late_setup_files() argument
590 chan->parent = parent; in relay_late_setup_files()
Dsignal.c2071 if (tsk->parent_exec_id != READ_ONCE(tsk->parent->self_exec_id)) in do_notify_parent()
2090 info.si_pid = task_pid_nr_ns(tsk, task_active_pid_ns(tsk->parent)); in do_notify_parent()
2091 info.si_uid = from_kuid_munged(task_cred_xxx(tsk->parent, user_ns), in do_notify_parent()
2109 psig = tsk->parent->sighand; in do_notify_parent()
2138 __send_signal_locked(sig, &info, tsk->parent, PIDTYPE_TGID, false); in do_notify_parent()
2139 __wake_up_parent(tsk, tsk->parent); in do_notify_parent()
2163 struct task_struct *parent; in do_notify_parent_cldstop() local
2168 parent = tsk->parent; in do_notify_parent_cldstop()
2171 parent = tsk->real_parent; in do_notify_parent_cldstop()
2181 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.c257 return css_cs(cs->css.parent); in parent_cs()
1300 struct cpuset *cs, struct cpuset *parent) in compute_effective_cpumask() argument
1302 if (parent->nr_subparts_cpus) { in compute_effective_cpumask()
1303 cpumask_or(new_cpus, parent->effective_cpus, in compute_effective_cpumask()
1304 parent->subparts_cpus); in compute_effective_cpumask()
1366 struct cpuset *parent = parent_cs(cs); in update_parent_subparts_cpumask() local
1379 if (!is_partition_valid(parent)) { in update_parent_subparts_cpumask()
1380 return is_partition_invalid(parent) in update_parent_subparts_cpumask()
1398 if (!cpumask_intersects(cs->cpus_allowed, parent->cpus_allowed)) in update_parent_subparts_cpumask()
1405 if (cpumask_subset(parent->effective_cpus, cs->cpus_allowed) && in update_parent_subparts_cpumask()
[all …]
Drstat.c50 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_rstat_updated() local
61 if (!parent) { in cgroup_rstat_updated()
66 prstatc = cgroup_rstat_cpu(parent, cpu); in cgroup_rstat_updated()
70 cgrp = parent; in cgroup_rstat_updated()
95 struct cgroup *parent; in cgroup_rstat_cpu_pop_updated() local
127 parent = cgroup_parent(pos); in cgroup_rstat_cpu_pop_updated()
128 if (parent) { in cgroup_rstat_cpu_pop_updated()
132 prstatc = cgroup_rstat_cpu(parent, cpu); in cgroup_rstat_cpu_pop_updated()
138 WARN_ON_ONCE(*nextp == parent); in cgroup_rstat_cpu_pop_updated()
167 struct cgroup *parent, int cpu) in bpf_rstat_flush() argument
[all …]
Dlegacy_freezer.c63 return css_freezer(freezer->css.parent); in parent_freezer()
115 struct freezer *parent = parent_freezer(freezer); in freezer_css_online() local
122 if (parent && (parent->state & CGROUP_FREEZING)) { in freezer_css_online()
403 struct freezer *parent = parent_freezer(pos_f); in freezer_change_state() local
414 parent->state & CGROUP_FREEZING, in freezer_change_state()
Dcgroup.c439 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_control() local
442 if (parent) { in cgroup_control()
443 u16 ss_mask = parent->subtree_control; in cgroup_control()
460 struct cgroup *parent = cgroup_parent(cgrp); in cgroup_ss_mask() local
462 if (parent) { in cgroup_ss_mask()
463 u16 ss_mask = parent->subtree_ss_mask; in cgroup_ss_mask()
658 struct cgroup *cgrp = of->kn->parent->priv; in of_css()
1625 cgrp = kn->parent->priv; in cgroup_kn_unlock()
1657 cgrp = kn->parent->priv; in cgroup_kn_lock_live()
3309 if (css->parent && in cgroup_apply_control_disable()
[all …]
/kernel/bpf/
Dlpm_trie.c442 struct lpm_trie_node *node, *parent; in trie_delete_elem() local
461 parent = NULL; in trie_delete_elem()
470 parent = node; in trie_delete_elem()
501 if (parent && (parent->flags & LPM_TREE_NODE_FLAG_IM) && in trie_delete_elem()
503 if (node == rcu_access_pointer(parent->child[0])) in trie_delete_elem()
505 *trim2, rcu_access_pointer(parent->child[1])); in trie_delete_elem()
508 *trim2, rcu_access_pointer(parent->child[0])); in trie_delete_elem()
509 kfree_rcu(parent, rcu); in trie_delete_elem()
620 struct lpm_trie_node *node, *next_node = NULL, *parent, *search_root; in trie_get_next_key() local
674 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
729 err = bpf_iter_link_pin_kernel(parent, in populate_bpffs()
/kernel/sched/
Dtopology.c67 if ((meta_flags & SDF_SHARED_PARENT) && sd->parent && in sched_domain_debug_one()
68 !(sd->parent->flags & flag)) in sched_domain_debug_one()
128 if (sd->parent && in sched_domain_debug_one()
129 !cpumask_subset(groupmask, sched_domain_span(sd->parent))) in sched_domain_debug_one()
152 sd = sd->parent; in sched_domain_debug()
192 sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) in sd_parent_degenerate() argument
194 unsigned long cflags = sd->flags, pflags = parent->flags; in sd_parent_degenerate()
196 if (sd_degenerate(parent)) in sd_parent_degenerate()
199 if (!cpumask_equal(sched_domain_span(sd), sched_domain_span(parent))) in sd_parent_degenerate()
203 if (parent->groups == parent->groups->next) in sd_parent_degenerate()
[all …]
Dcpudeadline.c10 static inline int parent(int i) in parent() function
79 p = parent(idx); in cpudl_heapify_up()
96 if (idx > 0 && dl_time_before(cp->elements[parent(idx)].dl, in cpudl_heapify()
Dsched.h405 struct task_group *parent; member
468 extern int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent);
473 struct sched_entity *parent);
482 struct sched_rt_entity *parent);
489 extern struct task_group *sched_create_group(struct task_group *parent);
491 struct task_group *parent);
519 extern int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent);
1807 __sd; __sd = __sd->parent)
1983 p->se.parent = tg->se[cpu]; in set_task_rq()
1989 p->rt.parent = tg->rt_se[cpu]; in set_task_rq()
/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()
1641 if (domain->parent != root_irq_data->domain) in irq_domain_push_irq()
1788 if (!domain->parent) in irq_domain_alloc_irqs_parent()
1791 return irq_domain_alloc_irqs_hierarchy(domain->parent, irq_base, in irq_domain_alloc_irqs_parent()
1805 if (!domain->parent) in irq_domain_free_irqs_parent()
1808 irq_domain_free_irqs_hierarchy(domain->parent, irq_base, nr_irqs); in irq_domain_free_irqs_parent()
[all …]
Dmsi.c496 struct irq_data *parent = irq_data->parent_data; in msi_domain_set_affinity() local
500 ret = parent->chip->irq_set_affinity(parent, mask, force); in msi_domain_set_affinity()
541 if (domain->parent) { in msi_domain_alloc()
681 struct irq_domain *parent) in msi_create_irq_domain() argument
689 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()
770 for (css = &cgrp->css; css; css = css->parent) { in update_cgrp_time_from_cpuctx()
818 for (css = &cgrp->css; css; css = css->parent) { in perf_cgroup_set_timestamp()
887 for (heap_size = 1; css; css = css->parent) in perf_cgroup_ensure_storage()
1351 if (event->parent) in perf_event_pid_type()
1352 event = event->parent; in perf_event_pid_type()
1379 if (event->parent) in primary_event_id()
1380 id = event->parent->id; in primary_event_id()
2226 struct perf_event *parent_event = event->parent; in perf_child_detach()
3449 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/locking/
Dlockdep.c1516 struct lock_list *parent) in visit_lock_entry() argument
1518 lock->parent = parent; in visit_lock_entry()
1528 return child->parent; in get_lock_parent()
1534 struct lock_list *parent; in get_lock_depth() local
1536 while ((parent = get_lock_parent(child))) { in get_lock_depth()
1537 child = parent; in get_lock_depth()
1646 lock->parent = NULL; in __bfs_init_root()
1681 if (!lock || !lock->parent) in __bfs_next()
1684 return list_next_or_null_rcu(get_dep_list(lock->parent, offset), in __bfs_next()
1756 if (lock->parent) { /* Parent exists, check prev dependency */ in __bfs()
[all …]
/kernel/rcu/
Dtree_exp.h112 rnp_up = rnp->parent; in sync_exp_reset_tree_hotplug()
123 rnp_up = rnp_up->parent; in sync_exp_reset_tree_hotplug()
198 if (rnp->parent == NULL) { in __rcu_report_exp_rnp()
208 rnp = rnp->parent; in __rcu_report_exp_rnp()
301 for (; rnp != NULL; rnp = rnp->parent) { in exp_funnel_lock()

123