aboutsummaryrefslogtreecommitdiffstats
path: root/judge/judgm_proc.h
diff options
context:
space:
mode:
Diffstat (limited to 'judge/judgm_proc.h')
-rw-r--r--judge/judgm_proc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/judge/judgm_proc.h b/judge/judgm_proc.h
new file mode 100644
index 0000000..9ccc032
--- /dev/null
+++ b/judge/judgm_proc.h
@@ -0,0 +1,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);