Lines Matching refs:module

44 static struct fpm_event_module_s *module;  variable
169 if (*queue == fpm_event_queue_fd && module->add) { in fpm_event_queue_add()
170 module->add(ev); in fpm_event_queue_add()
200 if (*queue == fpm_event_queue_fd && module->remove) { in fpm_event_queue_del()
201 module->remove(ev); in fpm_event_queue_del()
221 if (*queue == fpm_event_queue_fd && module->clean) { in fpm_event_queue_destroy()
222 module->clean(); in fpm_event_queue_destroy()
239 module = fpm_event_kqueue_module(); in fpm_event_pre_init()
240 if (module) { in fpm_event_pre_init()
241 if (!machanism || strcasecmp(module->name, machanism) == 0) { in fpm_event_pre_init()
247 module = fpm_event_port_module(); in fpm_event_pre_init()
248 if (module) { in fpm_event_pre_init()
249 if (!machanism || strcasecmp(module->name, machanism) == 0) { in fpm_event_pre_init()
255 module = fpm_event_epoll_module(); in fpm_event_pre_init()
256 if (module) { in fpm_event_pre_init()
257 if (!machanism || strcasecmp(module->name, machanism) == 0) { in fpm_event_pre_init()
263 module = fpm_event_devpoll_module(); in fpm_event_pre_init()
264 if (module) { in fpm_event_pre_init()
265 if (!machanism || strcasecmp(module->name, machanism) == 0) { in fpm_event_pre_init()
271 module = fpm_event_poll_module(); in fpm_event_pre_init()
272 if (module) { in fpm_event_pre_init()
273 if (!machanism || strcasecmp(module->name, machanism) == 0) { in fpm_event_pre_init()
279 module = fpm_event_select_module(); in fpm_event_pre_init()
280 if (module) { in fpm_event_pre_init()
281 if (!machanism || strcasecmp(module->name, machanism) == 0) { in fpm_event_pre_init()
297 return module ? module->name : NULL; in fpm_event_machanism_name()
303 return module ? module->support_edge_trigger : 0; in fpm_event_support_edge_trigger()
312 if (!module) { in fpm_event_init_main()
317 if (!module->wait) { in fpm_event_init_main()
331 if (module->init(max) < 0) { in fpm_event_init_main()
332 zlog(ZLOG_ERROR, "Unable to initialize the event module %s", module->name); in fpm_event_init_main()
336 zlog(ZLOG_DEBUG, "event module is %s and %d fds have been reserved", module->name, max); in fpm_event_init_main()
410 ret = module->wait(fpm_event_queue_fd, timeout); in fpm_event_loop()