Lines Matching refs:rethook
38 struct rethook *rh = container_of(head, struct rethook, rcu); in rethook_free_rcu()
64 void rethook_stop(struct rethook *rh) in rethook_stop()
79 void rethook_free(struct rethook *rh) in rethook_free()
86 static inline rethook_handler_t rethook_get_handler(struct rethook *rh) in rethook_get_handler()
101 struct rethook *rethook_alloc(void *data, rethook_handler_t handler) in rethook_alloc()
103 struct rethook *rh = kzalloc(sizeof(struct rethook), GFP_KERNEL); in rethook_alloc()
126 void rethook_add_node(struct rethook *rh, struct rethook_node *node) in rethook_add_node()
128 node->rethook = rh; in rethook_add_node()
137 if (refcount_dec_and_test(&node->rethook->ref)) in free_rethook_node_rcu()
138 kfree(node->rethook); in free_rethook_node_rcu()
153 handler = rethook_get_handler(node->rethook); in rethook_recycle()
155 freelist_add(&node->freelist, &node->rethook->pool); in rethook_recycle()
168 struct rethook_node *rethook_try_get(struct rethook *rh) in rethook_try_get()
320 handler = rethook_get_handler(rhn->rethook); in rethook_trampoline_handler()
322 handler(rhn, rhn->rethook->data, in rethook_trampoline_handler()