Home
last modified time | relevance | path

Searched refs:rt (Results 1 – 19 of 19) sorted by relevance

/unit/src/
H A Dnxt_runtime.c17 nxt_runtime_t *rt);
19 nxt_runtime_t *rt);
28 nxt_runtime_t *rt);
34 nxt_runtime_t *rt);
344 rt = obj; in nxt_runtime_start()
364 nxt_runtime_thread_pool_destroy(task, rt, rt->start); in nxt_runtime_start()
385 if (rt->inherited_sockets == NULL && rt->daemon) { in nxt_runtime_initial_start()
550 rt = obj; in nxt_runtime_exit()
601 if (rt->port_by_type[rt->type] != NULL) { in nxt_runtime_exit()
602 nxt_port_use(task, rt->port_by_type[rt->type], -1); in nxt_runtime_exit()
[all …]
H A Dnxt_runtime.h92 void nxt_runtime_event_engine_free(nxt_runtime_t *rt);
99 void nxt_runtime_process_remove(nxt_runtime_t *rt, nxt_process_t *process);
101 nxt_process_t *nxt_runtime_process_find(nxt_runtime_t *rt, nxt_pid_t pid);
103 nxt_process_t *nxt_runtime_process_first(nxt_runtime_t *rt,
106 void nxt_runtime_process_release(nxt_runtime_t *rt, nxt_process_t *process);
109 nxt_lvlhsh_each(&rt->processes, lhe)
115 void nxt_runtime_stop_app_processes(nxt_task_t *task, nxt_runtime_t *rt);
126 nxt_listen_socket_t *nxt_runtime_listen_socket_add(nxt_runtime_t *rt,
129 nxt_runtime_t *rt);
131 nxt_runtime_t *rt);
[all …]
H A Dnxt_process.c135 nxt_runtime_t *rt; in nxt_process_init_start() local
146 process->parent_port = rt->port_by_type[rt->type]; in nxt_process_init_start()
250 nxt_runtime_t *rt; in nxt_process_child_fixup() local
382 rt->type = init->type; in nxt_process_setup()
389 interface = nxt_service_get(rt->services, "engine", rt->engine); in nxt_process_setup()
398 ret = nxt_runtime_thread_pool_create(thread, rt, rt->auxiliary_threads, in nxt_process_setup()
415 if (rt->is_pid_isolated in nxt_process_setup()
486 nxt_runtime_t *rt; in nxt_process_whoami() local
538 nxt_runtime_t *rt; in nxt_process_whoami_ok() local
591 nxt_runtime_t *rt; in nxt_process_send_created() local
[all …]
H A Dnxt_port.c266 rt = task->thread->runtime; in nxt_port_new_port_handler()
314 nxt_runtime_t *rt; in nxt_port_process_ready_handler() local
316 rt = task->thread->runtime; in nxt_port_process_ready_handler()
347 nxt_runtime_t *rt; in nxt_port_mmap_handler() local
350 rt = task->thread->runtime; in nxt_port_mmap_handler()
413 nxt_runtime_t *rt; in nxt_port_change_log_file_handler() local
415 rt = task->thread->runtime; in nxt_port_change_log_file_handler()
460 nxt_runtime_t *rt; in nxt_port_remove_notify_others() local
468 rt = task->thread->runtime; in nxt_port_remove_notify_others()
521 nxt_runtime_t *rt; in nxt_port_remove_pid() local
[all …]
H A Dnxt_main_process.c36 nxt_runtime_t *rt);
83 nxt_runtime_t *rt) in nxt_main_process_start() argument
85 rt->type = NXT_PROCESS_MAIN; in nxt_main_process_start()
556 nxt_runtime_t *rt; in nxt_main_process_created_handler() local
620 nxt_runtime_t *rt; in nxt_main_process_whoami_handler() local
792 nxt_runtime_t *rt; in nxt_main_process_sigusr1_handler() local
890 nxt_runtime_t *rt; in nxt_main_process_sigchld_handler() local
1407 qsort(rt->languages->elts, rt->languages->nelts, in nxt_main_port_modules_handler()
1457 nxt_runtime_t *rt; in nxt_main_port_conf_store_handler() local
1504 ret = nxt_main_file_store(task, rt->ver_tmp, rt->ver, ver, n); in nxt_main_port_conf_store_handler()
[all …]
H A Dnxt_cert.c823 nxt_runtime_t *rt; in nxt_cert_store_load() local
827 rt = task->thread->runtime; in nxt_cert_store_load()
885 p = nxt_cpymem(buf, rt->certs.start, rt->certs.length); in nxt_cert_store_load()
959 nxt_runtime_t *rt;
1069 nxt_runtime_t *rt; in nxt_cert_store_get() local
1084 recv_port = rt->port_by_type[rt->type]; in nxt_cert_store_get()
1131 nxt_runtime_t *rt; in nxt_cert_store_get_handler() local
1172 p = nxt_cpymem(file.name, rt->certs.start, rt->certs.length); in nxt_cert_store_get_handler()
1196 nxt_runtime_t *rt; in nxt_cert_store_delete() local
1219 nxt_runtime_t *rt; in nxt_cert_store_delete_handler() local
[all …]
H A Dnxt_lib.c137 nxt_thread_spin_lock(&rt->lock); in nxt_lib_stop()
139 tp = rt->thread_pools; in nxt_lib_stop()
140 rt->thread_pools = (tp != NULL) ? tp->next : NULL; in nxt_lib_stop()
142 nxt_thread_spin_unlock(&rt->lock); in nxt_lib_stop()
H A Dnxt_stream_module.c21 nxt_runtime_t *rt; in nxt_stream_connection_init() local
35 rt = task->thread->runtime; in nxt_stream_connection_init()
37 if (rt->upstream.length != 0) { in nxt_stream_connection_init()
38 up->addr = rt->upstream; in nxt_stream_connection_init()
H A Dnxt_application.c163 nxt_runtime_t *rt; in nxt_discovery_start() local
167 rt = task->thread->runtime; in nxt_discovery_start()
593 nxt_runtime_t *rt; in nxt_proto_start_process_handler() local
597 rt = task->thread->runtime; in nxt_proto_start_process_handler()
960 lang = rt->languages->elts; in nxt_app_lang_module()
961 n = rt->languages->nelts; in nxt_app_lang_module()
1017 nxt_runtime_t *rt; in nxt_unit_default_init() local
1105 nxt_runtime_t *rt; in nxt_proto_process_add() local
1114 lhq.pool = rt->mem_pool; in nxt_proto_process_add()
1135 nxt_runtime_t *rt; in nxt_proto_process_remove() local
[all …]
H A Dnxt_clone.c211 nxt_runtime_t *rt; in nxt_clone_credential_map() local
213 rt = task->thread->runtime; in nxt_clone_credential_map()
215 if (rt->capabilities.setid) { in nxt_clone_credential_map()
262 nxt_runtime_t *rt; in nxt_clone_vldt_credential_uidmap() local
269 rt = task->thread->runtime; in nxt_clone_vldt_credential_uidmap()
271 if (!rt->capabilities.setid) { in nxt_clone_vldt_credential_uidmap()
316 nxt_runtime_t *rt; in nxt_clone_vldt_credential_gidmap() local
319 rt = task->thread->runtime; in nxt_clone_vldt_credential_gidmap()
321 if (!rt->capabilities.setid) { in nxt_clone_vldt_credential_gidmap()
H A Dnxt_controller.c161 nxt_runtime_t *rt; in nxt_controller_prefork() local
166 rt = task->thread->runtime; in nxt_controller_prefork()
272 nxt_runtime_t *rt; in nxt_controller_cert_cleanup() local
275 rt = data; in nxt_controller_cert_cleanup()
396 nxt_runtime_t *rt; in nxt_controller_send_current_conf() local
439 nxt_runtime_t *rt; in nxt_controller_router_ready_handler() local
458 nxt_runtime_t *rt; in nxt_controller_remove_pid_handler() local
507 nxt_runtime_t *rt; in nxt_controller_conf_init_handler() local
566 nxt_runtime_t *rt; in nxt_controller_conf_send() local
1437 nxt_runtime_t *rt; in nxt_controller_check_postpone_request() local
[all …]
H A Dnxt_external.c71 nxt_runtime_t *rt; in nxt_external_start() local
76 rt = task->thread->runtime; in nxt_external_start()
79 proto_port = rt->port_by_type[NXT_PROCESS_PROTOTYPE]; in nxt_external_start()
80 router_port = rt->port_by_type[NXT_PROCESS_ROUTER]; in nxt_external_start()
81 my_port = nxt_runtime_port_find(rt, nxt_pid, 0); in nxt_external_start()
H A Dnxt_isolation.c70 nxt_runtime_t *rt; in nxt_isolation_main_prefork() local
73 rt = task->thread->runtime; in nxt_isolation_main_prefork()
75 cap_setid = rt->capabilities.setid; in nxt_isolation_main_prefork()
110 nxt_strlen(rt->group))) in nxt_isolation_main_prefork()
523 nxt_runtime_t *rt; in nxt_isolation_set_mounts() local
526 rt = task->thread->runtime; in nxt_isolation_set_mounts()
527 cap_chroot = rt->capabilities.chroot; in nxt_isolation_set_mounts()
528 lang = nxt_app_lang_module(rt, app_type); in nxt_isolation_set_mounts()
669 nxt_runtime_t *rt; in nxt_isolation_unmount_all() local
673 rt = task->thread->runtime; in nxt_isolation_unmount_all()
[all …]
H A Dnxt_router.c340 nxt_runtime_t *rt; in nxt_router_start() local
342 rt = task->thread->runtime; in nxt_router_start()
347 rt->tls = nxt_service_get(rt->services, "SSL/TLS", "OpenSSL"); in nxt_router_start()
402 nxt_runtime_t *rt; in nxt_router_start_app_process_handler() local
510 nxt_runtime_t *rt; in nxt_router_start_app_process() local
514 rt = task->thread->runtime; in nxt_router_start_app_process()
676 nxt_runtime_t *rt; in nxt_router_new_port_handler() local
726 rt = task->thread->runtime; in nxt_router_new_port_handler()
2550 nxt_runtime_t *rt; in nxt_router_listen_socket_rpc_create() local
2780 nxt_runtime_t *rt; in nxt_router_app_rpc_create() local
[all …]
H A Dnxt_credential.c308 nxt_runtime_t *rt; in nxt_credential_setgids() local
313 rt = task->thread->runtime; in nxt_credential_setgids()
329 if (!rt->capabilities.setid) { in nxt_credential_setgids()
H A Dnxt_process.h35 nxt_runtime_t *rt; member
184 nxt_process_t *nxt_process_new(nxt_runtime_t *rt);
H A Dnxt_application.h137 nxt_app_lang_module_t *nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name);
H A Dnxt_port.h343 void nxt_port_change_log_file(nxt_task_t *task, nxt_runtime_t *rt,
/unit/src/test/
H A Dnxt_clone_test.c433 nxt_runtime_t rt; in nxt_clone_creds_test() local
446 thr->runtime = &rt; in nxt_clone_creds_test()
455 rt.mem_pool = mp; in nxt_clone_creds_test()
488 nxt_runtime_t *rt; in nxt_clone_test_mappings() local
491 rt = task->thread->runtime; in nxt_clone_test_mappings()
502 rt->capabilities.setid = tc->setid; in nxt_clone_test_mappings()
560 nxt_runtime_t *rt; in nxt_clone_test_parse_map() local
567 rt = task->thread->runtime; in nxt_clone_test_parse_map()
569 array = nxt_conf_json_parse_str(rt->mem_pool, map_str); in nxt_clone_test_parse_map()
580 map->map = nxt_mp_alloc(rt->mem_pool, in nxt_clone_test_parse_map()