Lines Matching refs:func_handle
3636 struct pevent_function_handler *func_handle = arg->func.func; in process_defined_func() local
3648 if (!func_handle->nr_args) { in process_defined_func()
3649 ret = (*func_handle->func)(s, NULL); in process_defined_func()
3654 param = func_handle->params; in process_defined_func()
3657 args = malloc(sizeof(*args) * func_handle->nr_args); in process_defined_func()
3661 for (i = 0; i < func_handle->nr_args; i++) { in process_defined_func()
3700 ret = (*func_handle->func)(s, args); in process_defined_func()
5364 struct pevent_function_handler *func_handle; in pevent_register_print_function() local
5371 func_handle = find_func_handler(pevent, name); in pevent_register_print_function()
5372 if (func_handle) { in pevent_register_print_function()
5382 func_handle = calloc(1, sizeof(*func_handle)); in pevent_register_print_function()
5383 if (!func_handle) { in pevent_register_print_function()
5388 func_handle->ret_type = ret_type; in pevent_register_print_function()
5389 func_handle->name = strdup(name); in pevent_register_print_function()
5390 func_handle->func = func; in pevent_register_print_function()
5391 if (!func_handle->name) { in pevent_register_print_function()
5393 free(func_handle); in pevent_register_print_function()
5397 next_param = &(func_handle->params); in pevent_register_print_function()
5422 func_handle->nr_args++; in pevent_register_print_function()
5426 func_handle->next = pevent->func_handlers; in pevent_register_print_function()
5427 pevent->func_handlers = func_handle; in pevent_register_print_function()
5432 free_func_handle(func_handle); in pevent_register_print_function()