Lines Matching refs:rethook
38 struct rethook *rh = container_of(head, struct rethook, rcu); in rethook_free_rcu()
66 void rethook_free(struct rethook *rh) in rethook_free()
82 struct rethook *rethook_alloc(void *data, rethook_handler_t handler) in rethook_alloc()
84 struct rethook *rh = kzalloc(sizeof(struct rethook), GFP_KERNEL); in rethook_alloc()
107 void rethook_add_node(struct rethook *rh, struct rethook_node *node) in rethook_add_node()
109 node->rethook = rh; in rethook_add_node()
118 if (refcount_dec_and_test(&node->rethook->ref)) in free_rethook_node_rcu()
119 kfree(node->rethook); in free_rethook_node_rcu()
134 if (likely(READ_ONCE(node->rethook->handler))) in rethook_recycle()
135 freelist_add(&node->freelist, &node->rethook->pool); in rethook_recycle()
148 struct rethook_node *rethook_try_get(struct rethook *rh) in rethook_try_get()
302 handler = READ_ONCE(rhn->rethook->handler); in rethook_trampoline_handler()
304 handler(rhn, rhn->rethook->data, regs); in rethook_trampoline_handler()