Lines Matching defs:child
54 int putreg(struct task_struct *child, int regno, unsigned long value)
78 UPT_SYSCALL_NR(&child->thread.regs.regs) = value;
100 child->thread.regs.regs.gp[HOST_EFLAGS] |= value;
107 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value;
111 int poke_user(struct task_struct *child, long addr, long data)
117 return putreg(child, addr, data);
124 child->thread.arch.debugregs[addr] = data;
130 unsigned long getreg(struct task_struct *child, int regno)
168 return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]];
171 int peek_user(struct task_struct *child, long addr, long data)
181 tmp = getreg(child, addr);
186 tmp = child->thread.arch.debugregs[addr];
191 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
193 int err, n, cpu = ((struct thread_info *) child->stack)->cpu;
208 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
210 int n, cpu = ((struct thread_info *) child->stack)->cpu;
221 long subarch_ptrace(struct task_struct *child, long request,
228 case PTRACE_GETFPREGS: /* Get the child FPU state. */
229 ret = get_fpregs(datap, child);
231 case PTRACE_SETFPREGS: /* Set the child FPU state. */
232 ret = set_fpregs(datap, child);
236 ret = arch_prctl(child, data, (void __user *) addr);