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()
95 struct rethook *rethook_alloc(void *data, rethook_handler_t handler) in rethook_alloc()
97 struct rethook *rh = kzalloc(sizeof(struct rethook), GFP_KERNEL); in rethook_alloc()
120 void rethook_add_node(struct rethook *rh, struct rethook_node *node) in rethook_add_node()
122 node->rethook = rh; in rethook_add_node()
131 if (refcount_dec_and_test(&node->rethook->ref)) in free_rethook_node_rcu()
132 kfree(node->rethook); in free_rethook_node_rcu()
147 if (likely(READ_ONCE(node->rethook->handler))) in rethook_recycle()
148 freelist_add(&node->freelist, &node->rethook->pool); in rethook_recycle()
161 struct rethook_node *rethook_try_get(struct rethook *rh) in rethook_try_get()
315 handler = READ_ONCE(rhn->rethook->handler); in rethook_trampoline_handler()
317 handler(rhn, rhn->rethook->data, in rethook_trampoline_handler()