Lines Matching refs:modules
50 cycle->modules = ngx_pcalloc(cycle->pool, (ngx_max_module + 1) in ngx_cycle_modules()
52 if (cycle->modules == NULL) { in ngx_cycle_modules()
56 ngx_memcpy(cycle->modules, ngx_modules, in ngx_cycle_modules()
70 for (i = 0; cycle->modules[i]; i++) { in ngx_init_modules()
71 if (cycle->modules[i]->init_module) { in ngx_init_modules()
72 if (cycle->modules[i]->init_module(cycle) != NGX_OK) { in ngx_init_modules()
93 for (i = 0; cycle->modules[i]; i++) { in ngx_count_modules()
94 module = cycle->modules[i]; in ngx_count_modules()
133 if (cycle->old_cycle && cycle->old_cycle->modules) { in ngx_count_modules()
135 for (i = 0; cycle->old_cycle->modules[i]; i++) { in ngx_count_modules()
136 module = cycle->old_cycle->modules[i]; in ngx_count_modules()
184 for (m = 0; cf->cycle->modules[m]; m++) { in ngx_add_module()
185 if (ngx_strcmp(cf->cycle->modules[m]->name, module->name) == 0) { in ngx_add_module()
230 if (ngx_strcmp(cf->cycle->modules[m]->name, order[i]) == 0) { in ngx_add_module()
246 ngx_memmove(&cf->cycle->modules[before + 1], in ngx_add_module()
247 &cf->cycle->modules[before], in ngx_add_module()
251 cf->cycle->modules[before] = module; in ngx_add_module()
291 for (i = 0; cycle->modules[i]; i++) { in ngx_module_index()
292 module = cycle->modules[i]; in ngx_module_index()
302 if (cycle->old_cycle && cycle->old_cycle->modules) { in ngx_module_index()
304 for (i = 0; cycle->old_cycle->modules[i]; i++) { in ngx_module_index()
305 module = cycle->old_cycle->modules[i]; in ngx_module_index()
328 for (i = 0; cycle->modules[i]; i++) { in ngx_module_ctx_index()
329 module = cycle->modules[i]; in ngx_module_ctx_index()
343 if (cycle->old_cycle && cycle->old_cycle->modules) { in ngx_module_ctx_index()
345 for (i = 0; cycle->old_cycle->modules[i]; i++) { in ngx_module_ctx_index()
346 module = cycle->old_cycle->modules[i]; in ngx_module_ctx_index()