1UTRACE_ATTACH_PID(9)            utrace core API           UTRACE_ATTACH_PID(9)
2
3
4

NAME

6       utrace_attach_pid - attach new engine, or look up an attached engine
7

SYNOPSIS

9       struct utrace_engine * utrace_attach_pid(struct pid * pid, int flags,
10                                                const struct utrace_engine_ops * ops,
11                                                void * data);
12

ARGUMENTS

14       pid
15
16           struct pid pointer representing thread to attach to
17
18       flags
19           flag bits combined with OR, see utrace_attach_task
20
21       ops
22           callback table for new engine
23
24       data
25           engine private data pointer
26

DESCRIPTION

28       This is the same as utrace_attach_task, but takes a struct pid pointer
29       rather than a struct task_struct pointer. The caller must hold a ref on
30       pid, but does not need to worry about the task staying valid. If it's
31       been reaped so that pid points nowhere, then this call returns -ESRCH.
32
33
34
35Kernel Hackers Manual 2.6.       November 2011            UTRACE_ATTACH_PID(9)
Impressum