| /Linux-v5.4/kernel/ | 
| D | ptrace.c | 67 void __ptrace_link(struct task_struct *child, struct task_struct *new_parent,  in __ptrace_link()  argument 70 	BUG_ON(!list_empty(&child->ptrace_entry));  in __ptrace_link() 71 	list_add(&child->ptrace_entry, &new_parent->ptraced);  in __ptrace_link() 72 	child->parent = new_parent;  in __ptrace_link() 73 	child->ptracer_cred = get_cred(ptracer_cred);  in __ptrace_link() 82 static void ptrace_link(struct task_struct *child, struct task_struct *new_parent)  in ptrace_link()  argument 84 	__ptrace_link(child, new_parent, current_cred());  in ptrace_link() 89  * @child: ptracee to be unlinked 91  * Remove @child from the ptrace list, move it back to the original parent, 115 void __ptrace_unlink(struct task_struct *child)  in __ptrace_unlink()  argument [all …] 
 | 
| /Linux-v5.4/scripts/kconfig/ | 
| D | gconf.glade | 24   <child> 30       <child> 34 	  <child> 40 	      <child> 43 		  <child> 52 		      <child internal-child="image"> 62 		      </child> 64 		  </child> 66 		  <child> 75 		      <child internal-child="image"> [all …] 
 | 
| D | conf.c | 232 	struct menu *child;  in conf_choice()  local 267 		for (child = menu->list; child; child = child->next) {  in conf_choice() 268 			if (!menu_is_visible(child))  in conf_choice() 270 			if (!child->sym) {  in conf_choice() 271 				printf("%*c %s\n", indent, '*', menu_get_prompt(child));  in conf_choice() 275 			if (child->sym == def_sym) {  in conf_choice() 280 			printf(" %d. %s", cnt, menu_get_prompt(child));  in conf_choice() 281 			if (child->sym->name)  in conf_choice() 282 				printf(" (%s)", child->sym->name);  in conf_choice() 283 			if (!sym_has_value(child->sym))  in conf_choice() [all …] 
 | 
| /Linux-v5.4/tools/testing/selftests/cgroup/ | 
| D | test_core.c | 107 	char *grandparent = NULL, *parent = NULL, *child = NULL;  in test_cgcore_invalid_domain()  local 111 	child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child");  in test_cgcore_invalid_domain() 112 	if (!parent || !child || !grandparent)  in test_cgcore_invalid_domain() 121 	if (cg_create(child))  in test_cgcore_invalid_domain() 127 	if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n"))  in test_cgcore_invalid_domain() 130 	if (!cg_enter_current(child))  in test_cgcore_invalid_domain() 140 	if (child)  in test_cgcore_invalid_domain() 141 		cg_destroy(child);  in test_cgcore_invalid_domain() 146 	free(child);  in test_cgcore_invalid_domain() 153  * Test that when a child becomes threaded [all …] 
 | 
| /Linux-v5.4/tools/testing/selftests/powerpc/ptrace/ | 
| D | ptrace.h | 60 int start_trace(pid_t child)  in start_trace()  argument 64 	ret = ptrace(PTRACE_ATTACH, child, NULL, NULL);  in start_trace() 69 	ret = waitpid(child, NULL, 0);  in start_trace() 70 	if (ret != child) {  in start_trace() 77 int stop_trace(pid_t child)  in stop_trace()  argument 81 	ret = ptrace(PTRACE_DETACH, child, NULL, NULL);  in stop_trace() 89 int cont_trace(pid_t child)  in cont_trace()  argument 93 	ret = ptrace(PTRACE_CONT, child, NULL, NULL);  in cont_trace() 101 int ptrace_read_regs(pid_t child, unsigned long type, unsigned long regs[],  in ptrace_read_regs()  argument 107 	FAIL_IF(start_trace(child));  in ptrace_read_regs() [all …] 
 | 
| /Linux-v5.4/arch/x86/kernel/ | 
| D | step.c | 12 unsigned long convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs)  in convert_ip_to_linear()  argument 36 		mutex_lock(&child->mm->context.lock);  in convert_ip_to_linear() 37 		if (unlikely(!child->mm->context.ldt ||  in convert_ip_to_linear() 38 			     seg >= child->mm->context.ldt->nr_entries))  in convert_ip_to_linear() 41 			desc = &child->mm->context.ldt->entries[seg];  in convert_ip_to_linear() 49 		mutex_unlock(&child->mm->context.lock);  in convert_ip_to_linear() 56 static int is_setting_trap_flag(struct task_struct *child, struct pt_regs *regs)  in is_setting_trap_flag()  argument 60 	unsigned long addr = convert_ip_to_linear(child, regs);  in is_setting_trap_flag() 62 	copied = access_process_vm(child, addr, opcode, sizeof(opcode),  in is_setting_trap_flag() 111 static int enable_single_step(struct task_struct *child)  in enable_single_step()  argument [all …] 
 | 
| D | ptrace.c | 132  * does not yet catch signals sent when the child dies. 354 static int putreg(struct task_struct *child,  in putreg()  argument 364 		return set_segment_reg(child, offset, value);  in putreg() 367 		return set_flags(child, value);  in putreg() 378 		if (child->thread.fsbase != value)  in putreg() 379 			return do_arch_prctl_64(child, ARCH_SET_FS, value);  in putreg() 387 		if (child->thread.gsbase != value)  in putreg() 388 			return do_arch_prctl_64(child, ARCH_SET_GS, value);  in putreg() 393 	*pt_regs_access(task_pt_regs(child), offset) = value;  in putreg() 721 void ptrace_disable(struct task_struct *child)  in ptrace_disable()  argument [all …] 
 | 
| /Linux-v5.4/arch/um/kernel/ | 
| D | ptrace.c | 13 void user_enable_single_step(struct task_struct *child)  in user_enable_single_step()  argument 15 	child->ptrace |= PT_DTRACE;  in user_enable_single_step() 16 	child->thread.singlestep_syscall = 0;  in user_enable_single_step() 19 	SUBARCH_SET_SINGLESTEPPING(child, 1);  in user_enable_single_step() 23 void user_disable_single_step(struct task_struct *child)  in user_disable_single_step()  argument 25 	child->ptrace &= ~PT_DTRACE;  in user_disable_single_step() 26 	child->thread.singlestep_syscall = 0;  in user_disable_single_step() 29 	SUBARCH_SET_SINGLESTEPPING(child, 0);  in user_disable_single_step() 36 void ptrace_disable(struct task_struct *child)  in ptrace_disable()  argument 38 	user_disable_single_step(child);  in ptrace_disable() [all …] 
 | 
| /Linux-v5.4/drivers/pwm/ | 
| D | sysfs.c | 18 	struct device child;  member 24 static struct pwm_export *child_to_pwm_export(struct device *child)  in child_to_pwm_export()  argument 26 	return container_of(child, struct pwm_export, child);  in child_to_pwm_export() 29 static struct pwm_device *child_to_pwm_device(struct device *child)  in child_to_pwm_device()  argument 31 	struct pwm_export *export = child_to_pwm_export(child);  in child_to_pwm_device() 36 static ssize_t period_show(struct device *child,  in period_show()  argument 40 	const struct pwm_device *pwm = child_to_pwm_device(child);  in period_show() 48 static ssize_t period_store(struct device *child,  in period_store()  argument 52 	struct pwm_export *export = child_to_pwm_export(child);  in period_store() 71 static ssize_t duty_cycle_show(struct device *child,  in duty_cycle_show()  argument [all …] 
 | 
| /Linux-v5.4/tools/perf/arch/x86/tests/ | 
| D | bp-modify.c | 32 	int child = fork();  in spawn_child()  local 34 	if (child == 0) {  in spawn_child() 36 		 * The child sets itself for as tracee and  in spawn_child() 52 	return child;  in spawn_child() 61 	pid_t child;  in bp_modify1()  local 65 	child = spawn_child();  in bp_modify1() 67 	waitpid(child, &status, 0);  in bp_modify1() 79 	 *  - detaches the child  in bp_modify1() 81 	if (ptrace(PTRACE_POKEUSER, child,  in bp_modify1() 88 	if (ptrace(PTRACE_POKEUSER, child,  in bp_modify1() [all …] 
 | 
| /Linux-v5.4/arch/s390/numa/ | 
| D | toptree.c | 54  * masks will be updated to reflect the loss of the child. 76 	struct toptree *child, *tmp;  in toptree_free()  local 80 	toptree_for_each_child_safe(child, tmp, cand)  in toptree_free() 81 		toptree_free(child);  in toptree_free() 102 	struct toptree *child;  in toptree_update_mask()  local 105 	list_for_each_entry(child, &cand->children, sibling)  in toptree_update_mask() 106 		cpumask_or(&cand->mask, &cand->mask, &child->mask);  in toptree_update_mask() 114  * @target: Pointer to the node to which @cand will added as a child 135  * toptree_move_children - Move all child nodes of a node to a new place 139  * Take all child nodes of @cand and move them using toptree_move. [all …] 
 | 
| /Linux-v5.4/arch/m68k/kernel/ | 
| D | ptrace.c | 30  * does not yet catch signals sent when the child dies. 127 static inline void singlestep_disable(struct task_struct *child)  in singlestep_disable()  argument 129 	unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS;  in singlestep_disable() 130 	put_reg(child, PT_SR, tmp);  in singlestep_disable() 131 	clear_tsk_thread_flag(child, TIF_DELAYED_TRACE);  in singlestep_disable() 137 void ptrace_disable(struct task_struct *child)  in ptrace_disable()  argument 139 	singlestep_disable(child);  in ptrace_disable() 142 void user_enable_single_step(struct task_struct *child)  in user_enable_single_step()  argument 144 	unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS;  in user_enable_single_step() 145 	put_reg(child, PT_SR, tmp | T1_BIT);  in user_enable_single_step() [all …] 
 | 
| /Linux-v5.4/arch/x86/um/ | 
| D | ptrace_32.c | 75 int putreg(struct task_struct *child, int regno, unsigned long value)  in putreg()  argument 91 		UPT_SYSCALL_NR(&child->thread.regs.regs) = value;  in putreg() 115 		child->thread.regs.regs.gp[HOST_EFLAGS] |= value;  in putreg() 120 	child->thread.regs.regs.gp[reg_offsets[regno]] = value;  in putreg() 124 int poke_user(struct task_struct *child, long addr, long data)  in poke_user()  argument 130 		return putreg(child, addr, data);  in poke_user() 137 		child->thread.arch.debugregs[addr] = data;  in poke_user() 143 unsigned long getreg(struct task_struct *child, int regno)  in getreg()  argument 172 	return mask & child->thread.regs.regs.gp[reg_offsets[regno]];  in getreg() 176 int peek_user(struct task_struct *child, long addr, long data)  in peek_user()  argument [all …] 
 | 
| D | ptrace_64.c | 53 int putreg(struct task_struct *child, int regno, unsigned long value)  in putreg()  argument 60 	if (test_tsk_thread_flag(child, TIF_IA32))  in putreg() 85 		UPT_SYSCALL_NR(&child->thread.regs.regs) = value;  in putreg() 107 		child->thread.regs.regs.gp[HOST_EFLAGS] |= value;  in putreg() 114 	child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value;  in putreg() 118 int poke_user(struct task_struct *child, long addr, long data)  in poke_user()  argument 124 		return putreg(child, addr, data);  in poke_user() 131 		child->thread.arch.debugregs[addr] = data;  in poke_user() 137 unsigned long getreg(struct task_struct *child, int regno)  in getreg()  argument 141 	if (test_tsk_thread_flag(child, TIF_IA32))  in getreg() [all …] 
 | 
| /Linux-v5.4/arch/mips/kernel/ | 
| D | ptrace32.c | 44 long compat_arch_ptrace(struct task_struct *child, compat_long_t request,  in compat_arch_ptrace()  argument 74 		copied = ptrace_access_vm(child, (u64)addrOthers, &tmp,  in compat_arch_ptrace() 87 		regs = task_pt_regs(child);  in compat_arch_ptrace() 98 			if (!tsk_used_math(child)) {  in compat_arch_ptrace() 103 			fregs = get_fpu_regs(child);  in compat_arch_ptrace() 104 			if (test_tsk_thread_flag(child, TIF_32BIT_FPREGS)) {  in compat_arch_ptrace() 118 			tmp = child->thread.fpu.fcr31;  in compat_arch_ptrace() 148 			dregs = __get_dsp_regs(child);  in compat_arch_ptrace() 158 			tmp = child->thread.dsp.dspcontrol;  in compat_arch_ptrace() 187 		if (ptrace_access_vm(child, (u64)addrOthers, &data,  in compat_arch_ptrace() [all …] 
 | 
| /Linux-v5.4/drivers/mfd/ | 
| D | twl-core.c | 711 	struct device	*child;  in add_children()  local 714 		child = add_child(TWL4030_MODULE_GPIO, "twl4030_gpio",  in add_children() 717 		if (IS_ERR(child))  in add_children() 718 			return PTR_ERR(child);  in add_children() 722 		child = add_child(TWL4030_MODULE_KEYPAD, "twl4030_keypad",  in add_children() 725 		if (IS_ERR(child))  in add_children() 726 			return PTR_ERR(child);  in add_children() 731 		child = add_child(TWL4030_MODULE_MADC, "twl4030_madc",  in add_children() 734 		if (IS_ERR(child))  in add_children() 735 			return PTR_ERR(child);  in add_children() [all …] 
 | 
| /Linux-v5.4/Documentation/devicetree/bindings/i2c/ | 
| D | i2c-mux.txt | 3 An i2c bus multiplexer/switch will have several child busses that are 5 multiplexer/switch will have one child node for each child bus. 9    This property is required if the i2c-mux child node does not exist. 12    This property is required if the i2c-mux child node does not exist. 15    For i2c multiplexers/switches that have child nodes that are a mixture 16    of both i2c child busses and other child nodes, the 'i2c-mux' subnode 17    can be used for populating the i2c child busses.  If an 'i2c-mux' 19    child busses. 21 Required properties for the i2c-mux child node: 25 Required properties for i2c child bus nodes: [all …] 
 | 
| /Linux-v5.4/arch/powerpc/kernel/ | 
| D | ptrace32.c | 38  * does not yet catch signals sent when the child dies. 47 long compat_arch_ptrace(struct task_struct *child, compat_long_t request,  in compat_arch_ptrace()  argument 76 		copied = ptrace_access_vm(child, (u64)addrOthers, &tmp,  in compat_arch_ptrace() 95 		CHECK_FULL_REGS(child->thread.regs);  in compat_arch_ptrace() 97 			ret = ptrace_get_reg(child, index, &tmp);  in compat_arch_ptrace() 101 			flush_fp_to_thread(child);  in compat_arch_ptrace() 107 			tmp = ((unsigned int *)child->thread.fp_state.fpr)  in compat_arch_ptrace() 145 		CHECK_FULL_REGS(child->thread.regs);  in compat_arch_ptrace() 147 			flush_fp_to_thread(child);  in compat_arch_ptrace() 149 			tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0];  in compat_arch_ptrace() [all …] 
 | 
| /Linux-v5.4/arch/alpha/kernel/ | 
| D | ptrace.c | 44  * does not yet catch signals sent when the child dies. 179 ptrace_set_bpt(struct task_struct * child)  in ptrace_set_bpt()  argument 185 	pc  = get_reg(child, REG_PC);  in ptrace_set_bpt() 186 	res = read_int(child, pc, (int *) &insn);  in ptrace_set_bpt() 201 		task_thread_info(child)->bpt_addr[nsaved++] = pc + 4;  in ptrace_set_bpt() 203 			task_thread_info(child)->bpt_addr[nsaved++]  in ptrace_set_bpt() 208 		task_thread_info(child)->bpt_addr[nsaved++] = get_reg(child, reg_b);  in ptrace_set_bpt() 211 		task_thread_info(child)->bpt_addr[nsaved++] = pc + 4;  in ptrace_set_bpt() 217 		res = read_int(child, task_thread_info(child)->bpt_addr[i],  in ptrace_set_bpt() 221 		task_thread_info(child)->bpt_insn[i] = insn;  in ptrace_set_bpt() [all …] 
 | 
| /Linux-v5.4/fs/ | 
| D | pnode.c | 227 	struct mount *child;  in propagate_one()  local 261 	child = copy_tree(last_source, last_source->mnt.mnt_root, type);  in propagate_one() 262 	if (IS_ERR(child))  in propagate_one() 263 		return PTR_ERR(child);  in propagate_one() 264 	mnt_set_mountpoint(m, mp, child);  in propagate_one() 266 	last_source = child;  in propagate_one() 272 	hlist_add_head(&child->mnt_hash, list);  in propagate_one() 273 	return count_mounts(m->mnt_ns, child);  in propagate_one() 340 	struct mount *child;  in find_topper()  local 345 	child = list_first_entry(&mnt->mnt_mounts, struct mount, mnt_child);  in find_topper() [all …] 
 | 
| /Linux-v5.4/drivers/of/ | 
| D | of_mdio.c | 46 				    struct device_node *child, u32 addr)  in of_mdiobus_register_phy()  argument 53 	is_c45 = of_device_is_compatible(child,  in of_mdiobus_register_phy() 56 	if (!is_c45 && !of_get_phy_id(child, &phy_id))  in of_mdiobus_register_phy() 63 	rc = of_irq_get(child, 0);  in of_mdiobus_register_phy() 75 	if (of_property_read_bool(child, "broken-turn-around"))  in of_mdiobus_register_phy() 78 	of_property_read_u32(child, "reset-assert-us",  in of_mdiobus_register_phy() 80 	of_property_read_u32(child, "reset-deassert-us",  in of_mdiobus_register_phy() 85 	of_node_get(child);  in of_mdiobus_register_phy() 86 	phy->mdio.dev.of_node = child;  in of_mdiobus_register_phy() 87 	phy->mdio.dev.fwnode = of_fwnode_handle(child);  in of_mdiobus_register_phy() [all …] 
 | 
| /Linux-v5.4/drivers/scsi/libsas/ | 
| D | sas_expander.c | 745 				       struct domain_device *child,  in sas_ex_get_linkrate()  argument 752 	child->pathways = 0;  in sas_ex_get_linkrate() 764 		    SAS_ADDR(child->sas_addr)) {  in sas_ex_get_linkrate() 766 			child->min_linkrate = min(parent->min_linkrate,  in sas_ex_get_linkrate() 768 			child->max_linkrate = max(parent->max_linkrate,  in sas_ex_get_linkrate() 770 			child->pathways++;  in sas_ex_get_linkrate() 774 	child->linkrate = min(parent_phy->linkrate, child->max_linkrate);  in sas_ex_get_linkrate() 775 	child->pathways = min(child->pathways, parent->pathways);  in sas_ex_get_linkrate() 783 	struct domain_device *child = NULL;  in sas_ex_discover_end_dev()  local 790 	child = sas_alloc_device();  in sas_ex_discover_end_dev() [all …] 
 | 
| /Linux-v5.4/tools/testing/selftests/ptrace/ | 
| D | peeksiginfo.c | 44 static int check_error_paths(pid_t child)  in check_error_paths()  argument 73 	ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw);  in check_error_paths() 83 	ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg,  in check_error_paths() 91 	ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro);  in check_error_paths() 105 int check_direct_path(pid_t child, int shared, int nr)  in check_direct_path()  argument 122 		ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, siginfo);  in check_direct_path() 157 	pid_t child;  in main()  local 163 	child = fork();  in main() 164 	if (child == -1) {  in main() 167 	} else if (child == 0) {  in main() [all …] 
 | 
| /Linux-v5.4/drivers/bus/ | 
| D | tegra-gmi.c | 91 	struct device_node *child;  in tegra_gmi_parse_dt()  local 95 	child = of_get_next_available_child(gmi->dev->of_node, NULL);  in tegra_gmi_parse_dt() 96 	if (!child) {  in tegra_gmi_parse_dt() 97 		dev_err(gmi->dev, "no child nodes found\n");  in tegra_gmi_parse_dt() 102 	 * We currently only support one child device due to lack of  in tegra_gmi_parse_dt() 107 		dev_warn(gmi->dev, "only one child device is supported.");  in tegra_gmi_parse_dt() 109 	if (of_property_read_bool(child, "nvidia,snor-data-width-32bit"))  in tegra_gmi_parse_dt() 112 	if (of_property_read_bool(child, "nvidia,snor-mux-mode"))  in tegra_gmi_parse_dt() 115 	if (of_property_read_bool(child, "nvidia,snor-rdy-active-before-data"))  in tegra_gmi_parse_dt() 118 	if (of_property_read_bool(child, "nvidia,snor-rdy-active-high"))  in tegra_gmi_parse_dt() [all …] 
 | 
| /Linux-v5.4/arch/xtensa/kernel/ | 
| D | ptrace.c | 226 void user_enable_single_step(struct task_struct *child)  in user_enable_single_step()  argument 228 	child->ptrace |= PT_SINGLESTEP;  in user_enable_single_step() 231 void user_disable_single_step(struct task_struct *child)  in user_disable_single_step()  argument 233 	child->ptrace &= ~PT_SINGLESTEP;  in user_disable_single_step() 240 void ptrace_disable(struct task_struct *child)  in ptrace_disable()  argument 245 static int ptrace_getregs(struct task_struct *child, void __user *uregs)  in ptrace_getregs()  argument 247 	return copy_regset_to_user(child, &user_xtensa_view, REGSET_GPR,  in ptrace_getregs() 251 static int ptrace_setregs(struct task_struct *child, void __user *uregs)  in ptrace_setregs()  argument 253 	return copy_regset_from_user(child, &user_xtensa_view, REGSET_GPR,  in ptrace_setregs() 257 static int ptrace_getxregs(struct task_struct *child, void __user *uregs)  in ptrace_getxregs()  argument [all …] 
 |