aboutsummaryrefslogtreecommitdiffstats
path: root/judge/judgm_proc.h
blob: 9ccc0326c0d0208e89163050bc2a0079c8a98b16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#define PROC_TASK_HTSIZE 1009

static int proc_watcher(void *data);
static int proc_get_path(char *in_path,char *real_path);
static int proc_close_fd(struct task_struct *task);

static struct task_struct *proc_watcher_task;
static LIST_HEAD(proc_task_list);
static struct hlist_head *proc_task_ht;
static DEFINE_SPINLOCK(proc_task_htlock);
static struct kmem_cache *proc_info_cachep;

int judgm_proc_init(void);
int judgm_proc_exit(void);
int judgm_proc_add(unsigned long arg);
int judgm_proc_get(unsigned long arg);
int judgm_proc_kill(unsigned long arg);
int judgm_proc_del(unsigned long arg);
struct judgm_proc_info* judgm_proc_task_lookup(struct task_struct *task);