Lines Matching refs:target
6 static int collect_syscall(struct task_struct *target, long *callno,
10 struct pt_regs *regs = task_pt_regs(target);
17 *callno = syscall_get_nr(target, regs);
19 syscall_get_arguments(target, regs, 0, maxargs, args);
26 * @target: thread to examine
33 * If @target is blocked in a system call, returns zero with *@callno
37 * call is still in progress. Note we may get this result if @target
41 * If @target is blocked in the kernel during a fault or exception,
43 * If so, it's now safe to examine @target using &struct user_regset
44 * get() calls as long as we're sure @target won't return to user mode.
46 * Returns -%EAGAIN if @target does not remain blocked.
50 int task_current_syscall(struct task_struct *target, long *callno,
60 if (target == current)
61 return collect_syscall(target, callno, args, maxargs, sp, pc);
63 state = target->state;
67 ncsw = wait_task_inactive(target, state);
69 unlikely(collect_syscall(target, callno, args, maxargs, sp, pc)) ||
70 unlikely(wait_task_inactive(target, state) != ncsw))