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

Lines Matching refs:child

31  * does not yet catch signals sent when the child dies.
74 static inline int is_user_addr_valid(struct task_struct *child,
84 for (vml = child->mm->context.vmlist; vml; vml = vml->next)
97 void ptrace_disable(struct task_struct *child)
99 child->thread.frame0->__status &= ~REG__STATUS_STEP;
102 void ptrace_enable(struct task_struct *child)
104 child->thread.frame0->__status |= REG__STATUS_STEP;
107 long arch_ptrace(struct task_struct *child, long request, long addr, long data)
119 if (is_user_addr_valid(child, addr, sizeof(tmp)) < 0)
122 copied = access_process_vm(child, addr, &tmp, sizeof(tmp), 0);
140 tmp = get_reg(child, addr >> 2);
144 tmp = child->mm->end_code - child->mm->start_code;
148 tmp = child->mm->end_data - child->mm->start_data;
152 tmp = child->mm->start_stack - child->mm->start_brk;
156 tmp = child->mm->start_code;
160 tmp = child->mm->start_stack;
177 if (is_user_addr_valid(child, addr, sizeof(tmp)) < 0)
179 if (access_process_vm(child, addr, &data, sizeof(data), 1) != sizeof(data))
192 ret = put_reg(child, addr >> 2, data);
207 set_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
209 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
210 child->exit_code = data;
211 ptrace_disable(child);
212 wake_up_process(child);
216 /* make the child exit. Best I can do is send it a sigkill.
222 if (child->exit_state == EXIT_ZOMBIE) /* already dead */
224 child->exit_code = SIGKILL;
225 clear_tsk_thread_flag(child, TIF_SINGLESTEP);
226 ptrace_disable(child);
227 wake_up_process(child);
234 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
235 ptrace_enable(child);
236 child->exit_code = data;
237 wake_up_process(child);
242 ret = ptrace_detach(child, data);
245 case PTRACE_GETREGS: { /* Get all integer regs from the child. */
248 tmp = get_reg(child, i);
259 case PTRACE_SETREGS: { /* Set all integer regs in the child. */
266 put_reg(child, i, tmp);
273 case PTRACE_GETFPREGS: { /* Get the child FP/Media state. */
276 &child->thread.user->f,
277 sizeof(child->thread.user->f)))
282 case PTRACE_SETFPREGS: { /* Set the child FP/Media state. */
284 if (copy_from_user(&child->thread.user->f,
286 sizeof(child->thread.user->f)))
295 tmp = child->mm->context.exec_fdpic_loadmap;
298 tmp = child->mm->context.interp_fdpic_loadmap;