Lines Matching refs:cycle

19 static ngx_int_t ngx_kqueue_init(ngx_cycle_t *cycle, ngx_msec_t timer);
23 static void ngx_kqueue_done(ngx_cycle_t *cycle);
33 static ngx_int_t ngx_kqueue_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
38 static void *ngx_kqueue_create_conf(ngx_cycle_t *cycle);
39 static char *ngx_kqueue_init_conf(ngx_cycle_t *cycle, void *conf);
122 ngx_kqueue_init(ngx_cycle_t *cycle, ngx_msec_t timer) in ngx_kqueue_init() argument
136 kcf = ngx_event_get_conf(cycle->conf_ctx, ngx_kqueue_module); in ngx_kqueue_init()
142 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, in ngx_kqueue_init()
148 if (ngx_kqueue_notify_init(cycle->log) != NGX_OK) { in ngx_kqueue_init()
162 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, in ngx_kqueue_init()
174 cycle->log); in ngx_kqueue_init()
187 event_list = ngx_alloc(kcf->events * sizeof(struct kevent), cycle->log); in ngx_kqueue_init()
211 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, in ngx_kqueue_init()
273 ngx_kqueue_done(ngx_cycle_t *cycle) in ngx_kqueue_done() argument
276 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, in ngx_kqueue_done()
509 ngx_kqueue_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, in ngx_kqueue_process_events() argument
546 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
550 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
563 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
581 ngx_log_error(level, cycle->log, err, "kevent() failed"); in ngx_kqueue_process_events()
593 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, in ngx_kqueue_process_events()
601 ngx_kqueue_dump_event(cycle->log, &event_list[i]); in ngx_kqueue_process_events()
604 ngx_log_error(NGX_LOG_ALERT, cycle->log, event_list[i].data, in ngx_kqueue_process_events()
637 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, in ngx_kqueue_process_events()
678 ngx_log_error(NGX_LOG_ALERT, cycle->log, 0, in ngx_kqueue_process_events()
721 ngx_kqueue_create_conf(ngx_cycle_t *cycle) in ngx_kqueue_create_conf() argument
725 kcf = ngx_palloc(cycle->pool, sizeof(ngx_kqueue_conf_t)); in ngx_kqueue_create_conf()
738 ngx_kqueue_init_conf(ngx_cycle_t *cycle, void *conf) in ngx_kqueue_init_conf() argument