1 #include <linux/list.h>
2 #include <linux/slab.h>
3 #include "sspt_filter.h"
5 #include "../pf/pf_group.h"
8 struct sspt_filter *sspt_filter_create(struct sspt_proc *proc,
11 struct sspt_filter *fl;
13 fl = kmalloc(sizeof(*fl), GFP_ATOMIC);
17 INIT_LIST_HEAD(&fl->list);
21 fl->pfg_is_inst = false;
26 void sspt_filter_free(struct sspt_filter *fl)
28 if (fl->pfg_is_inst) {
29 struct pfg_msg_cb *cb = pfg_msg_cb_get(fl->pfg);
31 if (cb && cb->msg_term)
32 cb->msg_term(fl->proc->task);