Lines Matching refs:child

76 int putreg(struct task_struct *child, int regno, unsigned long value)
92 UPT_SYSCALL_NR(&child->thread.regs.regs) = value;
116 child->thread.regs.regs.gp[HOST_EFLAGS] |= value;
121 child->thread.regs.regs.gp[reg_offsets[regno]] = value;
125 int poke_user(struct task_struct *child, long addr, long data)
131 return putreg(child, addr, data);
138 child->thread.arch.debugregs[addr] = data;
144 unsigned long getreg(struct task_struct *child, int regno)
173 return mask & child->thread.regs.regs.gp[reg_offsets[regno]];
177 int peek_user(struct task_struct *child, long addr, long data)
186 tmp = getreg(child, addr);
192 tmp = child->thread.arch.debugregs[addr];
197 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
199 int err, n, cpu = task_cpu(child);
214 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
216 int n, cpu = task_cpu(child);
227 static int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
229 int err, n, cpu = task_cpu(child);
243 static int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
245 int n, cpu = task_cpu(child);
256 long subarch_ptrace(struct task_struct *child, long request,
262 case PTRACE_GETFPREGS: /* Get the child FPU state. */
263 ret = get_fpregs(datap, child);
265 case PTRACE_SETFPREGS: /* Set the child FPU state. */
266 ret = set_fpregs(datap, child);
268 case PTRACE_GETFPXREGS: /* Get the child FPU state. */
269 ret = get_fpxregs(datap, child);
271 case PTRACE_SETFPXREGS: /* Set the child FPU state. */
272 ret = set_fpxregs(datap, child);