Home
last modified time | relevance | path

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

12345678910>>...63

/openbmc/linux/arch/powerpc/kernel/ptrace/
H 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 …]
H 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 …]
/openbmc/linux/drivers/mtd/
H A Dmtdpart.c56 child = kzalloc(sizeof(*child), GFP_KERNEL); in allocate_partition()
62 kfree(child); in allocate_partition()
70 child->flags = child->part.flags; in allocate_partition()
113 child->part.size = parent_size - child->part.offset - in allocate_partition()
124 child->part.size = parent_size - child->part.offset; in allocate_partition()
127 child->part.offset, child->part.offset + child->part.size, in allocate_partition()
143 child->part.size = parent_size - child->part.offset; in allocate_partition()
151 u64 end = child->part.offset + child->part.size; in allocate_partition()
193 tmp = mtd_get_master_ofs(child, 0) + child->part.size; in allocate_partition()
201 child->size = child->part.size; in allocate_partition()
[all …]
/openbmc/linux/arch/x86/kernel/
H 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()
211 if (enable_single_step(child) && block) in enable_step()
212 set_task_blockstep(child, true); in enable_step()
214 set_task_blockstep(child, false); in enable_step()
219 enable_step(child, 0); in user_enable_single_step()
224 enable_step(child, 1); in user_enable_block_step()
[all …]
/openbmc/linux/kernel/
H A Dptrace.c120 BUG_ON(!child->ptrace); in __ptrace_unlink()
127 child->parent = child->real_parent; in __ptrace_unlink()
134 child->ptrace = 0; in __ptrace_unlink()
168 if (child->jobctl & JOBCTL_STOP_PENDING || task_is_traced(child)) in __ptrace_unlink()
262 if (child->ptrace && child->parent == current) { in ptrace_check_attach()
589 ptrace_disable(child); in ptrace_detach()
596 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()
1290 if (!child) { in SYSCALL_DEFINE4()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dfp-stress.c70 child->pid = fork(); in child_start()
71 if (child->pid == -1) in child_start()
75 if (!child->pid) { in child_start()
134 ev.data.ptr = child; in child_start()
165 if (child->output) { in child_output_read()
168 free(child->output); in child_output_read()
210 child->stdout = -1; in child_output()
215 ksft_print_msg("%s: %s<EOF>\n", child->name, child->output); in child_output()
223 if (child->output_seen && !child->exited) in child_tickle()
229 if (!child->exited) in child_stop()
[all …]
/openbmc/libbej/test/
H A Dbej_tree_test.cpp90 struct RedfishPropertyLeafInt child; in TEST() local
101 EXPECT_THAT(child.value, 1024); in TEST()
108 struct RedfishPropertyLeafInt child; in TEST() local
113 EXPECT_THAT(child.value, 1024); in TEST()
114 bejTreeSetInteger(&child, 20); in TEST()
115 EXPECT_THAT(child.value, 20); in TEST()
123 struct RedfishPropertyLeafEnum child; in TEST() local
134 EXPECT_THAT(child.value, enumValue); in TEST()
161 struct RedfishPropertyLeafReal child; in TEST() local
172 EXPECT_THAT(child.value, value); in TEST()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Duprobe_multi_test.c28 struct child { struct
33 static void release_child(struct child *child) in release_child() argument
37 if (!child) in release_child()
45 static void kick_child(struct child *child) in kick_child() argument
49 if (child) { in kick_child()
58 static struct child child; in spawn_child() local
154 struct child *child) in __test_attach_api() argument
156 pid_t pid = child ? child->pid : -1; in __test_attach_api()
202 struct child *child; in test_attach_api() local
237 static void __test_link_api(struct child *child) in __test_link_api() argument
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h64 int start_trace(pid_t child) in start_trace() argument
73 ret = waitpid(child, NULL, 0); in start_trace()
74 if (ret != child) { in start_trace()
81 int stop_trace(pid_t child) in stop_trace() argument
93 int cont_trace(pid_t child) in cont_trace() argument
111 FAIL_IF(start_trace(child)); in ptrace_read_regs()
120 FAIL_IF(stop_trace(child)); in ptrace_read_regs()
131 FAIL_IF(start_trace(child)); in ptrace_write_regs()
138 FAIL_IF(stop_trace(child)); in ptrace_write_regs()
325 int show_fpr(pid_t child, __u64 *fpr) in show_fpr() argument
[all …]
/openbmc/linux/arch/mips/kernel/
H 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 …]
/openbmc/libbej/src/
H A Dbej_tree.c56 bejTreeLinkChildToParent(parent, child); in bejTreeAddNull()
64 child->value = value; in bejTreeAddInteger()
65 bejTreeLinkChildToParent(parent, child); in bejTreeAddInteger()
78 child->value = value; in bejTreeAddEnum()
79 bejTreeLinkChildToParent(parent, child); in bejTreeAddEnum()
87 child->value = value; in bejTreeAddString()
96 child->value = value; in bejTreeAddReal()
110 child->value = value; in bejTreeAddBool()
119 parent->firstChild = child; in bejTreeLinkChildToParent()
124 lastChild->sibling = child; in bejTreeLinkChildToParent()
[all …]
/openbmc/linux/tools/perf/arch/x86/tests/
H 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 …]
/openbmc/linux/arch/um/kernel/
H A Dptrace.c14 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
15 child->thread.singlestep_syscall = 0; in user_enable_single_step()
18 SUBARCH_SET_SINGLESTEPPING(child, 1); in user_enable_single_step()
24 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
25 child->thread.singlestep_syscall = 0; in user_disable_single_step()
28 SUBARCH_SET_SINGLESTEPPING(child, 0); in user_disable_single_step()
37 user_disable_single_step(child); in ptrace_disable()
53 ret = peek_user(child, addr, data); in arch_ptrace()
58 ret = poke_user(child, addr, data); in arch_ptrace()
73 __put_user(getreg(child, i), p); in arch_ptrace()
[all …]
/openbmc/linux/arch/m68k/kernel/
H A Dptrace.c130 put_reg(child, PT_SR, tmp); in singlestep_disable()
139 singlestep_disable(child); in ptrace_disable()
145 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step()
159 singlestep_disable(child); in user_disable_single_step()
177 tmp = get_reg(child, regno); in arch_ptrace()
188 tmp = child->mm->start_code; in arch_ptrace()
190 tmp = child->mm->start_data; in arch_ptrace()
192 tmp = child->mm->end_code; in arch_ptrace()
209 if (put_reg(child, regno, data)) in arch_ptrace()
227 tmp = get_reg(child, i); in arch_ptrace()
[all …]
/openbmc/linux/arch/alpha/kernel/
H A Dptrace.c179 ptrace_set_bpt(struct task_struct * child) in ptrace_set_bpt() argument
185 pc = get_reg(child, REG_PC); in ptrace_set_bpt()
208 task_thread_info(child)->bpt_addr[nsaved++] = get_reg(child, reg_b); in ptrace_set_bpt()
217 res = read_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt()
224 res = write_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt()
242 task_thread_info(child)->bpt_nsaved = 0; in ptrace_cancel_bpt()
250 write_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_cancel_bpt()
264 ptrace_cancel_bpt(child); in user_disable_single_step()
274 user_disable_single_step(child); in ptrace_disable()
301 ret = get_reg(child, addr); in arch_ptrace()
[all …]
/openbmc/linux/drivers/pwm/
H 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 …]
/openbmc/linux/drivers/net/mdio/
H A Dfwnode_mdio.c66 rc = fwnode_irq_get(child, 0); in fwnode_mdiobus_phy_device_register()
93 fwnode_handle_get(child); in fwnode_mdiobus_phy_device_register()
94 device_set_node(&phy->mdio.dev, child); in fwnode_mdiobus_phy_device_register()
102 fwnode_handle_put(child); in fwnode_mdiobus_phy_device_register()
107 child, addr); in fwnode_mdiobus_phy_device_register()
113 struct fwnode_handle *child, u32 addr) in fwnode_mdiobus_register_phy() argument
122 psec = fwnode_find_pse_control(child); in fwnode_mdiobus_register_phy()
126 mii_ts = fwnode_find_mii_timestamper(child); in fwnode_mdiobus_register_phy()
142 if (is_acpi_node(child)) { in fwnode_mdiobus_register_phy()
154 fwnode_handle_put(child); in fwnode_mdiobus_register_phy()
[all …]
H 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
78 child, addr); in of_mdiobus_register_device()
130 child); in of_mdiobus_child_is_phy()
153 struct device_node *child; in __of_mdiobus_register() local
189 if (of_mdiobus_child_is_phy(child)) in __of_mdiobus_register()
208 if (of_property_present(child, "reg")) in __of_mdiobus_register()
218 child, addr); in __of_mdiobus_register()
220 if (of_mdiobus_child_is_phy(child)) { in __of_mdiobus_register()
[all …]
/openbmc/linux/tools/testing/selftests/ptrace/
H 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 …]
/openbmc/linux/arch/x86/um/
H A Dptrace_32.c131 return putreg(child, addr, data); in poke_user()
186 tmp = getreg(child, addr); in peek_user()
192 tmp = child->thread.arch.debugregs[addr]; in peek_user()
199 int err, n, cpu = task_cpu(child); in get_fpregs()
216 int n, cpu = task_cpu(child); in set_fpregs()
229 int err, n, cpu = task_cpu(child); in get_fpxregs()
245 int n, cpu = task_cpu(child); in set_fpxregs()
263 ret = get_fpregs(datap, child); in subarch_ptrace()
266 ret = set_fpregs(datap, child); in subarch_ptrace()
269 ret = get_fpxregs(datap, child); in subarch_ptrace()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/abi/
H A Dptrace.c32 static void test_tpidr(pid_t child) in test_tpidr() argument
117 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, in test_tpidr()
145 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in test_hw_debug()
174 static int do_parent(pid_t child) in do_parent() argument
195 if (pid != child) in do_parent()
237 test_tpidr(child); in do_parent()
244 kill(child, SIGKILL); in do_parent()
253 pid_t child; in main() local
261 child = fork(); in main()
262 if (!child) in main()
[all …]
/openbmc/u-boot/scripts/kconfig/
H A Dconf.c233 struct menu *child; in conf_choice() local
268 for (child = menu->list; child; child = child->next) { in conf_choice()
323 for (child = menu->list; child; child = child->next) { in conf_choice()
324 if (!child->sym || !menu_is_visible(child)) in conf_choice()
329 if (!child) in conf_choice()
336 for (child = child->list; child; child = child->next) { in conf_choice()
338 conf(child); in conf_choice()
349 struct menu *child; in conf() local
406 for (child = menu->list; child; child = child->next) in conf()
407 conf(child); in conf()
[all …]
/openbmc/linux/include/linux/
H A Dptrace.h92 return !same_thread_group(child->real_parent, child->parent); in ptrace_reparented()
97 if (unlikely(child->ptrace)) in ptrace_unlink()
98 __ptrace_unlink(child); in ptrace_unlink()
202 INIT_LIST_HEAD(&child->ptrace_entry); in ptrace_init_task()
203 INIT_LIST_HEAD(&child->ptraced); in ptrace_init_task()
204 child->jobctl = 0; in ptrace_init_task()
205 child->ptrace = 0; in ptrace_init_task()
206 child->parent = child->real_parent; in ptrace_init_task()
209 child->ptrace = current->ptrace; in ptrace_init_task()
212 if (child->ptrace & PT_SEIZED) in ptrace_init_task()
[all …]
/openbmc/linux/tools/testing/selftests/cgroup/
H 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 …]
/openbmc/linux/fs/
H A Dpnode.c226 struct mount *child; in propagate_one() local
261 if (IS_ERR(child)) in propagate_one()
269 last_source = child; in propagate_one()
337 struct mount *child; in find_topper() local
346 return child; in find_topper()
427 if (!child) in propagate_mount_busy()
460 if (child) in propagate_mount_unlock()
483 struct mount *child; in __propagate_umount() local
498 if (!list_empty(&child->mnt_umounting) && IS_MNT_MARKED(child)) in __propagate_umount()
599 if (!child) in propagate_umount()
[all …]

12345678910>>...63