Lines Matching refs:child

75 int putreg(struct task_struct *child, int regno, unsigned long value)
91 UPT_SYSCALL_NR(&child->thread.regs.regs) = value;
115 child->thread.regs.regs.gp[HOST_EFLAGS] |= value;
120 child->thread.regs.regs.gp[reg_offsets[regno]] = value;
124 int poke_user(struct task_struct *child, long addr, long data)
130 return putreg(child, addr, data);
137 child->thread.arch.debugregs[addr] = data;
143 unsigned long getreg(struct task_struct *child, int regno)
172 return mask & child->thread.regs.regs.gp[reg_offsets[regno]];
176 int peek_user(struct task_struct *child, long addr, long data)
185 tmp = getreg(child, addr);
191 tmp = child->thread.arch.debugregs[addr];
196 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
198 int err, n, cpu = task_cpu(child);
213 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
215 int n, cpu = task_cpu(child);
226 static int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
228 int err, n, cpu = task_cpu(child);
242 static int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
244 int n, cpu = task_cpu(child);
255 long subarch_ptrace(struct task_struct *child, long request,
261 case PTRACE_GETFPREGS: /* Get the child FPU state. */
262 ret = get_fpregs(datap, child);
264 case PTRACE_SETFPREGS: /* Set the child FPU state. */
265 ret = set_fpregs(datap, child);
267 case PTRACE_GETFPXREGS: /* Get the child FPU state. */
268 ret = get_fpxregs(datap, child);
270 case PTRACE_SETFPXREGS: /* Set the child FPU state. */
271 ret = set_fpxregs(datap, child);