Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 1055) sorted by relevance

12345678910>>...43

/linux/arch/powerpc/kernel/ptrace/
A Dptrace-adv.c224 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_instruction_bp()
241 child->thread.debug.iac1 = 0; in del_instruction_bp()
251 child->thread.debug.iac2 = 0; in del_instruction_bp()
264 child->thread.debug.iac3 = 0; in del_instruction_bp()
274 child->thread.debug.iac4 = 0; in del_instruction_bp()
308 child->thread.debug.dvc1 = in set_dac()
310 child->thread.debug.dbcr2 |= in set_dac()
329 child->thread.debug.dvc2 = in set_dac()
331 child->thread.debug.dbcr2 |= in set_dac()
340 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_dac()
[all …]
A Dptrace32.c87 ret = ptrace_get_reg(child, index, &tmp); in compat_arch_ptrace()
91 flush_fp_to_thread(child); in compat_arch_ptrace()
136 flush_fp_to_thread(child); in compat_arch_ptrace()
141 ret = ptrace_get_reg(child, numReg, &tmp2); in compat_arch_ptrace()
189 ret = ptrace_put_reg(child, index, data); in compat_arch_ptrace()
191 flush_fp_to_thread(child); in compat_arch_ptrace()
228 ret = ptrace_get_reg(child, numReg, &freg); in compat_arch_ptrace()
235 ret = ptrace_put_reg(child, numReg, freg); in compat_arch_ptrace()
238 flush_fp_to_thread(child); in compat_arch_ptrace()
269 child, task_user_regset_view(current), 0, in compat_arch_ptrace()
[all …]
/linux/drivers/mtd/
A Dmtdpart.c49 child = kzalloc(sizeof(*child), GFP_KERNEL); in allocate_partition()
55 kfree(child); in allocate_partition()
63 child->flags = child->part.flags; in allocate_partition()
106 child->part.size = parent_size - child->part.offset - in allocate_partition()
117 child->part.size = parent_size - child->part.offset; in allocate_partition()
120 child->part.offset, child->part.offset + child->part.size, in allocate_partition()
136 child->part.size = parent_size - child->part.offset; in allocate_partition()
144 u64 end = child->part.offset + child->part.size; in allocate_partition()
186 tmp = mtd_get_master_ofs(child, 0) + child->part.size; in allocate_partition()
194 child->size = child->part.size; in allocate_partition()
[all …]
/linux/kernel/
A Dptrace.c119 BUG_ON(!child->ptrace); in __ptrace_unlink()
126 child->parent = child->real_parent; in __ptrace_unlink()
133 child->ptrace = 0; in __ptrace_unlink()
167 if (child->jobctl & JOBCTL_STOP_PENDING || task_is_traced(child)) in __ptrace_unlink()
258 if (child->ptrace && child->parent == current) { in ptrace_check_attach()
566 ptrace_disable(child); in ptrace_detach()
573 WARN_ON(!child->ptrace || child->exit_state); in ptrace_detach()
1007 switch (child->last_siginfo ? child->last_siginfo->si_code : 0) { in ptrace_get_syscall_info()
1147 ptrace_signal_wake_up(child, child->jobctl & JOBCTL_LISTENING); in ptrace_request()
1291 if (!child) { in SYSCALL_DEFINE4()
[all …]
/linux/arch/x86/kernel/
A Dstep.c36 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear()
37 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear()
49 mutex_unlock(&child->mm->context.lock); in convert_ip_to_linear()
113 struct pt_regs *regs = task_pt_regs(child); in enable_single_step()
155 if (is_setting_trap_flag(child, regs)) { in enable_single_step()
212 if (enable_single_step(child) && block) in enable_step()
213 set_task_blockstep(child, true); in enable_step()
215 set_task_blockstep(child, false); in enable_step()
220 enable_step(child, 0); in user_enable_single_step()
225 enable_step(child, 1); in user_enable_block_step()
[all …]
/linux/drivers/mfd/
A Dtwl-core.c717 if (IS_ERR(child)) in add_children()
725 if (IS_ERR(child)) in add_children()
734 if (IS_ERR(child)) in add_children()
748 if (IS_ERR(child)) in add_children()
755 if (IS_ERR(child)) in add_children()
762 if (IS_ERR(child)) in add_children()
817 if (IS_ERR(child)) in add_children()
831 if (IS_ERR(child)) in add_children()
838 if (IS_ERR(child)) in add_children()
847 if (IS_ERR(child)) in add_children()
[all …]
/linux/tools/testing/selftests/powerpc/ptrace/
A Dptrace.h60 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
89 int cont_trace(pid_t child) in cont_trace() argument
93 ret = ptrace(PTRACE_CONT, child, NULL, NULL); in cont_trace()
107 FAIL_IF(start_trace(child)); in ptrace_read_regs()
116 FAIL_IF(stop_trace(child)); in ptrace_read_regs()
127 FAIL_IF(start_trace(child)); in ptrace_write_regs()
[all …]
/linux/arch/mips/kernel/
A Dptrace32.c86 regs = task_pt_regs(child); in compat_arch_ptrace()
97 if (!tsk_used_math(child)) { in compat_arch_ptrace()
102 fregs = get_fpu_regs(child); in compat_arch_ptrace()
117 tmp = child->thread.fpu.fcr31; in compat_arch_ptrace()
147 dregs = __get_dsp_regs(child); in compat_arch_ptrace()
197 regs = task_pt_regs(child); in compat_arch_ptrace()
213 if (!tsk_used_math(child)) { in compat_arch_ptrace()
217 child->thread.fpu.fcr31 = 0; in compat_arch_ptrace()
253 dregs = __get_dsp_regs(child); in compat_arch_ptrace()
273 ret = ptrace_getregs(child, in compat_arch_ptrace()
[all …]
/linux/arch/m68k/kernel/
A Dptrace.c129 put_reg(child, PT_SR, tmp); in singlestep_disable()
138 singlestep_disable(child); in ptrace_disable()
144 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step()
158 singlestep_disable(child); in user_disable_single_step()
176 tmp = get_reg(child, regno); in arch_ptrace()
187 tmp = child->mm->start_code; in arch_ptrace()
189 tmp = child->mm->start_data; in arch_ptrace()
191 tmp = child->mm->end_code; in arch_ptrace()
208 if (put_reg(child, regno, data)) in arch_ptrace()
226 tmp = get_reg(child, i); in arch_ptrace()
[all …]
/linux/tools/perf/arch/x86/tests/
A Dbp-modify.c32 int child = fork(); in spawn_child() local
34 if (child == 0) { 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()
106 waitpid(child, &status, 0); in bp_modify1()
138 pid_t child; in bp_modify2() local
142 child = spawn_child(); in bp_modify2()
144 waitpid(child, &status, 0); in bp_modify2()
[all …]
/linux/arch/um/kernel/
A Dptrace.c15 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()
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()
38 user_disable_single_step(child); in ptrace_disable()
54 ret = peek_user(child, addr, data); in arch_ptrace()
59 ret = poke_user(child, addr, data); in arch_ptrace()
74 __put_user(getreg(child, i), p); in arch_ptrace()
[all …]
/linux/drivers/pwm/
A Dsysfs.c18 struct device child; member
26 return container_of(child, struct pwm_export, child); in child_to_pwm_export()
260 export->child.parent = parent; in pwm_export_child()
261 export->child.devt = MKDEV(0, 0); in pwm_export_child()
268 put_device(&export->child); in pwm_export_child()
287 struct device *child; in pwm_unexport_child() local
294 if (!child) in pwm_unexport_child()
303 put_device(child); in pwm_unexport_child()
304 device_unregister(child); in pwm_unexport_child()
381 struct device *child; in pwm_class_get_state() local
[all …]
/linux/arch/alpha/kernel/
A Dptrace.c178 ptrace_set_bpt(struct task_struct * child) in ptrace_set_bpt() argument
184 pc = get_reg(child, REG_PC); in ptrace_set_bpt()
207 task_thread_info(child)->bpt_addr[nsaved++] = get_reg(child, reg_b); in ptrace_set_bpt()
216 res = read_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt()
223 res = write_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt()
241 task_thread_info(child)->bpt_nsaved = 0; in ptrace_cancel_bpt()
249 write_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_cancel_bpt()
263 ptrace_cancel_bpt(child); in user_disable_single_step()
273 user_disable_single_step(child); in ptrace_disable()
300 ret = get_reg(child, addr); in arch_ptrace()
[all …]
/linux/arch/x86/um/
A Dptrace_32.c130 return putreg(child, addr, data); in poke_user()
185 tmp = getreg(child, addr); in peek_user()
191 tmp = child->thread.arch.debugregs[addr]; in peek_user()
198 int err, n, cpu = task_cpu(child); in get_fpregs()
215 int n, cpu = task_cpu(child); in set_fpregs()
228 int err, n, cpu = task_cpu(child); in get_fpxregs()
244 int n, cpu = task_cpu(child); in set_fpxregs()
262 ret = get_fpregs(datap, child); in subarch_ptrace()
265 ret = set_fpregs(datap, child); in subarch_ptrace()
268 ret = get_fpxregs(datap, child); in subarch_ptrace()
[all …]
/linux/tools/testing/selftests/ptrace/
A Dpeeksiginfo.c44 static int check_error_paths(pid_t child) in check_error_paths() argument
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()
185 sys_rt_tgsigqueueinfo(child, child, SIGRTMIN, siginfo); in main()
191 waitpid(child, NULL, 0); in main()
194 if (check_direct_path(child, 0, 1)) in main()
204 if (check_direct_path(child, 1, 3)) in main()
207 if (check_error_paths(child)) in main()
[all …]
/linux/tools/testing/selftests/cgroup/
A Dtest_core.c319 if (child) in test_cgcore_invalid_domain()
325 free(child); in test_cgcore_invalid_domain()
360 if (child) in test_cgcore_parent_becomes_threaded()
364 free(child); in test_cgcore_parent_becomes_threaded()
413 if (child) in test_cgcore_no_internal_process_constraint_on_threads()
417 free(child); in test_cgcore_no_internal_process_constraint_on_threads()
448 if (child) in test_cgcore_top_down_constraint_enable()
452 free(child); in test_cgcore_top_down_constraint_enable()
489 if (child) in test_cgcore_top_down_constraint_disable()
493 free(child); in test_cgcore_top_down_constraint_disable()
[all …]
/linux/include/linux/
A Dptrace.h99 return !same_thread_group(child->real_parent, child->parent); in ptrace_reparented()
104 if (unlikely(child->ptrace)) in ptrace_unlink()
105 __ptrace_unlink(child); in ptrace_unlink()
210 INIT_LIST_HEAD(&child->ptrace_entry); in ptrace_init_task()
211 INIT_LIST_HEAD(&child->ptraced); in ptrace_init_task()
212 child->jobctl = 0; in ptrace_init_task()
213 child->ptrace = 0; in ptrace_init_task()
214 child->parent = child->real_parent; in ptrace_init_task()
217 child->ptrace = current->ptrace; in ptrace_init_task()
220 if (child->ptrace & PT_SEIZED) in ptrace_init_task()
[all …]
A Dbootconfig.h52 uint16_t child; member
104 return xbc_node_is_value(node) && node->child != 0; in xbc_node_is_array()
173 struct xbc_node *child = xbc_node_get_child(node); in xbc_node_get_subkey() local
175 if (child && xbc_node_is_value(child)) in xbc_node_get_subkey()
176 return xbc_node_get_next(child); in xbc_node_get_subkey()
178 return child; in xbc_node_get_subkey()
203 #define xbc_node_for_each_child(parent, child) \ argument
204 for (child = xbc_node_get_child(parent); child != NULL ; \
205 child = xbc_node_get_next(child))
216 for (child = xbc_node_get_subkey(parent); child != NULL ; \
[all …]
/linux/drivers/net/mdio/
A Dfwnode_mdio.c41 struct fwnode_handle *child, u32 addr) in fwnode_mdiobus_phy_device_register() argument
45 rc = fwnode_irq_get(child, 0); in fwnode_mdiobus_phy_device_register()
67 fwnode_handle_get(child); in fwnode_mdiobus_phy_device_register()
68 device_set_node(&phy->mdio.dev, child); in fwnode_mdiobus_phy_device_register()
75 fwnode_handle_put(child); in fwnode_mdiobus_phy_device_register()
80 child, addr); in fwnode_mdiobus_phy_device_register()
86 struct fwnode_handle *child, u32 addr) in fwnode_mdiobus_register_phy() argument
94 mii_ts = fwnode_find_mii_timestamper(child); in fwnode_mdiobus_register_phy()
112 if (is_acpi_node(child)) { in fwnode_mdiobus_register_phy()
118 phy->mdio.dev.fwnode = child; in fwnode_mdiobus_register_phy()
[all …]
A Dof_mdio.c37 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument
40 of_fwnode_handle(child), in of_mdiobus_phy_device_register()
46 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument
52 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument
72 of_node_put(child); in of_mdiobus_register_device()
77 child, addr); in of_mdiobus_register_device()
129 child); in of_mdiobus_child_is_phy()
150 struct device_node *child; in of_mdiobus_register() local
186 if (of_mdiobus_child_is_phy(child)) in of_mdiobus_register()
215 child, addr); in of_mdiobus_register()
[all …]
/linux/fs/
A Dpnode.c227 struct mount *child; in propagate_one() local
262 if (IS_ERR(child)) in propagate_one()
270 last_source = child; in propagate_one()
339 struct mount *child; in find_topper() local
348 return child; in find_topper()
389 if (!child) in propagate_mount_busy()
422 if (child) in propagate_mount_unlock()
445 struct mount *child; in __propagate_umount() local
460 if (!list_empty(&child->mnt_umounting) && IS_MNT_MARKED(child)) in __propagate_umount()
561 if (!child) in propagate_umount()
[all …]
/linux/drivers/pci/pcie/
A Daspm.c436 return child; in pci_function_0()
501 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL1, &cctl1); in aspm_calc_l1ss_info()
502 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL2, &cctl2); in aspm_calc_l1ss_info()
513 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_calc_l1ss_info()
521 pci_write_config_dword(child, child->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l1ss_info()
531 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_calc_l1ss_info()
538 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, 0, in aspm_calc_l1ss_info()
611 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CAP, in pcie_aspm_cap_init()
640 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL1, in pcie_aspm_cap_init()
705 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
[all …]
/linux/drivers/scsi/libsas/
A Dsas_expander.c774 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()
791 if (!child) in sas_ex_discover_end_dev()
799 sas_hash_addr(child->hashed_sas_addr, child->sas_addr); in sas_ex_discover_end_dev()
837 child->linkrate = child->min_linkrate; in sas_ex_discover_end_dev()
897 return child; in sas_ex_discover_end_dev()
956 if (!child) in sas_ex_discover_expander()
988 sas_hash_addr(child->hashed_sas_addr, child->sas_addr); in sas_ex_discover_expander()
1013 return child; in sas_ex_discover_expander()
1107 if (!child) in sas_ex_discover_dev()
[all …]
/linux/arch/s390/kernel/
A Dptrace.c159 0 : child->thread.per_user.start; in __peek_user_per()
163 -1UL : child->thread.per_user.end; in __peek_user_per()
173 return child->thread.per_user.end; in __peek_user_per()
245 tmp = child->thread.fpu.fpc; in __peek_user()
290 tmp = __peek_user(child, addr); in peek_user()
313 child->thread.per_user.control = in __poke_user_per()
320 child->thread.per_user.end = data; in __poke_user_per()
484 put_user(child->thread.last_break, in arch_ptrace()
630 tmp = child->thread.fpu.fpc; in __peek_user_compat()
680 child->thread.per_user.control = in __poke_user_per_compat()
[all …]
/linux/arch/sh/kernel/
A Dptrace_32.c117 set_single_step(child, pc); in user_enable_single_step()
132 user_disable_single_step(child); in ptrace_disable()
356 tmp = get_stack_long(child, addr); in arch_ptrace()
359 if (!tsk_used_math(child)) { in arch_ptrace()
366 ret = init_fpu(child); in arch_ptrace()
374 tmp = !!tsk_used_math(child); in arch_ptrace()
376 tmp = child->mm->start_code; in arch_ptrace()
378 tmp = child->mm->start_data; in arch_ptrace()
380 tmp = child->mm->end_code; in arch_ptrace()
382 tmp = child->mm->end_code - child->mm->start_code; in arch_ptrace()
[all …]

Completed in 60 milliseconds

12345678910>>...43