tracedump
single application IP packet sniffer
Functions

pid.c File Reference

#include "tracedump.h"

Go to the source code of this file.

Functions

struct pidpid_get (struct tracedump *td, pid_t pid)
 Get struct pid for given pid number.
void pid_del (struct tracedump *td, pid_t pid)
 Remove given pid from the database.
void pid_detach_all (struct tracedump *td)
 Detach from all pids.
int pid_tgid (pid_t pid)
 Get thread group id.

Function Documentation

void pid_del ( struct tracedump td,
pid_t  pid 
)

Remove given pid from the database.

Definition at line 29 of file pid.c.

Referenced by main(), and pid_detach_all().

void pid_detach_all ( struct tracedump td)

Detach from all pids.

Definition at line 35 of file pid.c.

Referenced by main().

struct pid* pid_get ( struct tracedump td,
pid_t  pid 
) [read]

Get struct pid for given pid number.

Definition at line 9 of file pid.c.

Referenced by main(), and ptrace_attach_pid().

int pid_tgid ( pid_t  pid)

Get thread group id.

Return values:
0error

Definition at line 46 of file pid.c.

Referenced by ptrace_detach().

 All Data Structures Files Functions Variables Enumerations Enumerator Defines