Lines Matching defs:handler
46 * all running rethook handler before calling rethook_free(), you need to
51 rcu_assign_pointer(rh->handler, NULL);
59 * @rh::data is cleaned if needed (or, the handler can access it after
87 return (rethook_handler_t)rcu_dereference_check(rh->handler,
93 * @data: a data to pass the @handler when hooking the return.
94 * @handler: the return hook callback function, must NOT be NULL
98 * Allocate and initialize a new rethook with @data and @handler.
101 * Note that @handler == NULL means this rethook is going to be freed.
103 struct rethook *rethook_alloc(void *data, rethook_handler_t handler,
108 if (!handler || num <= 0 || size < sizeof(struct rethook_node))
116 rcu_assign_pointer(rh->handler, handler);
144 rethook_handler_t handler;
146 handler = rethook_get_handler(node->rethook);
147 if (likely(handler))
163 rethook_handler_t handler = rethook_get_handler(rh);
166 if (unlikely(!handler))
272 * so that stacktrace works from the rethook handler.
282 rethook_handler_t handler;
300 * Run the handler on the shadow stack. Do not unlink the list here because
308 handler = rethook_get_handler(rhn->rethook);
309 if (handler)
310 handler(rhn, rhn->rethook->data,