22#ifndef __PROCESS_GROUP_H
24#define __PROCESS_GROUP_H
30#define PIDHASH_SZ 1024
31#define pid_hashfn(x) ((((x) >> 8) ^ (x)) & (PIDHASH_SZ - 1))
int init_process_group(struct process_group *pgroup, int target_pid, int include_children)
void update_process_group(struct process_group *pgroup)
int find_process_by_pid(pid_t pid)
int close_process_group(struct process_group *pgroup)
int find_process_by_name(const char *process_name)
int remove_process(struct process_group *pgroup, int pid)
struct list * proctable[PIDHASH_SZ]
struct timeval last_update