Lines Matching refs:child

52 int putreg(struct task_struct *child, int regno, unsigned long value)
68 UPT_SYSCALL_NR(&child->thread.regs.regs) = value;
92 child->thread.regs.regs.gp[HOST_EFLAGS] |= value;
97 child->thread.regs.regs.gp[reg_offsets[regno]] = value;
101 int poke_user(struct task_struct *child, long addr, long data)
107 return putreg(child, addr, data);
114 child->thread.arch.debugregs[addr] = data;
120 unsigned long getreg(struct task_struct *child, int regno)
149 return mask & child->thread.regs.regs.gp[reg_offsets[regno]];
153 int peek_user(struct task_struct *child, long addr, long data)
162 tmp = getreg(child, addr);
168 tmp = child->thread.arch.debugregs[addr];
173 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
175 int err, n, cpu = task_cpu(child);
190 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
192 int n, cpu = task_cpu(child);
203 static int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
205 int err, n, cpu = task_cpu(child);
219 static int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
221 int n, cpu = task_cpu(child);
232 long subarch_ptrace(struct task_struct *child, long request,
238 case PTRACE_GETFPREGS: /* Get the child FPU state. */
239 ret = get_fpregs(datap, child);
241 case PTRACE_SETFPREGS: /* Set the child FPU state. */
242 ret = set_fpregs(datap, child);
244 case PTRACE_GETFPXREGS: /* Get the child FPU state. */
245 ret = get_fpxregs(datap, child);
247 case PTRACE_SETFPXREGS: /* Set the child FPU state. */
248 ret = set_fpxregs(datap, child);