Lines Matching refs:head

32 	struct cls_cgroup_head *head = rcu_dereference_bh(tp->root);  in cls_cgroup_classify()  local
37 if (!tcf_em_tree_match(skb, &head->ematches, NULL)) in cls_cgroup_classify()
43 return tcf_exts_exec(skb, &head->exts, res); in cls_cgroup_classify()
62 struct cls_cgroup_head *head = container_of(root, in cls_cgroup_destroy_rcu() local
66 tcf_exts_destroy(&head->exts); in cls_cgroup_destroy_rcu()
67 tcf_em_tree_destroy(&head->ematches); in cls_cgroup_destroy_rcu()
68 kfree(head); in cls_cgroup_destroy_rcu()
77 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_change() local
86 if (!head && !handle) in cls_cgroup_change()
89 if (head && handle != head->handle) in cls_cgroup_change()
92 new = kzalloc(sizeof(*head), GFP_KERNEL); in cls_cgroup_change()
119 if (head) in cls_cgroup_change()
120 call_rcu(&head->rcu, cls_cgroup_destroy_rcu); in cls_cgroup_change()
129 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_destroy() local
134 if (head) { in cls_cgroup_destroy()
136 call_rcu(&head->rcu, cls_cgroup_destroy_rcu); in cls_cgroup_destroy()
148 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_walk() local
153 if (arg->fn(tp, (unsigned long) head, arg) < 0) { in cls_cgroup_walk()
164 struct cls_cgroup_head *head = rtnl_dereference(tp->root); in cls_cgroup_dump() local
167 t->tcm_handle = head->handle; in cls_cgroup_dump()
173 if (tcf_exts_dump(skb, &head->exts) < 0 || in cls_cgroup_dump()
174 tcf_em_tree_dump(skb, &head->ematches, TCA_CGROUP_EMATCHES) < 0) in cls_cgroup_dump()
179 if (tcf_exts_dump_stats(skb, &head->exts) < 0) in cls_cgroup_dump()