• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/m68k/kernel/

Lines Matching refs:child

29  * does not yet catch signals sent when the child dies.
106 static inline void singlestep_disable(struct task_struct *child)
108 unsigned long tmp = get_reg(child, PT_SR) & ~(TRACE_BITS << 16);
109 put_reg(child, PT_SR, tmp);
110 clear_tsk_thread_flag(child, TIF_DELAYED_TRACE);
116 void ptrace_disable(struct task_struct *child)
118 singlestep_disable(child);
119 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
122 long arch_ptrace(struct task_struct *child, long request, long addr, long data)
131 i = access_process_vm(child, addr, &tmp, sizeof(tmp), 0);
144 tmp = get_reg(child, addr);
148 tmp = child->thread.fp[addr - 21];
163 if (access_process_vm(child, addr, &data, sizeof(data), 1) != sizeof(data))
175 data |= get_reg(child, PT_SR) & ~(SR_MASK << 16);
177 if (put_reg(child, addr, data))
188 child->thread.fp[addr - 21] = data;
199 set_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
201 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
202 child->exit_code = data;
203 singlestep_disable(child);
204 wake_up_process(child);
208 * make the child exit. Best I can do is send it a sigkill.
213 if (child->exit_state == EXIT_ZOMBIE) /* already dead */
215 child->exit_code = SIGKILL;
216 singlestep_disable(child);
217 wake_up_process(child);
224 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
225 tmp = get_reg(child, PT_SR) | (TRACE_BITS << 16);
226 put_reg(child, PT_SR, tmp);
227 set_tsk_thread_flag(child, TIF_DELAYED_TRACE);
229 child->exit_code = data;
231 wake_up_process(child);
235 ret = ptrace_detach(child, data);
238 case PTRACE_GETREGS: /* Get all gp regs from the child. */
240 tmp = get_reg(child, i);
250 case PTRACE_SETREGS: /* Set all gp regs in the child. */
258 tmp |= get_reg(child, PT_SR) & ~(SR_MASK << 16);
260 put_reg(child, i, tmp);
265 case PTRACE_GETFPREGS: /* Get the child FPU state. */
266 if (copy_to_user((void *)data, &child->thread.fp,
271 case PTRACE_SETFPREGS: /* Set the child FPU state. */
272 if (copy_from_user(&child->thread.fp, (void *)data,
278 ret = ptrace_request(child, request, addr, data);