Lines Matching full:target
8 static int collect_syscall(struct task_struct *target, long *callno, in collect_syscall() argument
14 if (!try_get_task_stack(target)) { in collect_syscall()
21 regs = task_pt_regs(target); in collect_syscall()
23 put_task_stack(target); in collect_syscall()
30 *callno = syscall_get_nr(target, regs); in collect_syscall()
32 syscall_get_arguments(target, regs, 0, maxargs, args); in collect_syscall()
34 put_task_stack(target); in collect_syscall()
40 * @target: thread to examine
47 * If @target is blocked in a system call, returns zero with *@callno
51 * call is still in progress. Note we may get this result if @target
55 * If @target is blocked in the kernel during a fault or exception,
57 * If so, it's now safe to examine @target using &struct user_regset
58 * get() calls as long as we're sure @target won't return to user mode.
60 * Returns -%EAGAIN if @target does not remain blocked.
64 int task_current_syscall(struct task_struct *target, long *callno, in task_current_syscall() argument
74 if (target == current) in task_current_syscall()
75 return collect_syscall(target, callno, args, maxargs, sp, pc); in task_current_syscall()
77 state = target->state; in task_current_syscall()
81 ncsw = wait_task_inactive(target, state); in task_current_syscall()
83 unlikely(collect_syscall(target, callno, args, maxargs, sp, pc)) || in task_current_syscall()
84 unlikely(wait_task_inactive(target, state) != ncsw)) in task_current_syscall()