From c617480eefc0822d52f9153906bb526ad483b9a3 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Sat, 25 Jul 2020 11:06:32 +0300 Subject: Using plain shared memory for configuration pass. There is no restrictions on configration size and using segmented shared memory only doubles memory usage because to parse configration on router side, it needs to be 'plain' e. g. located in single continous memory buffer. --- src/nxt_port_memory.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_port_memory.h') diff --git a/src/nxt_port_memory.h b/src/nxt_port_memory.h index 748549b1..2cd4bd76 100644 --- a/src/nxt_port_memory.h +++ b/src/nxt_port_memory.h @@ -71,5 +71,6 @@ typedef enum nxt_port_method_e nxt_port_method_t; nxt_port_method_t nxt_port_mmap_get_method(nxt_task_t *task, nxt_port_t *port, nxt_buf_t *b); +nxt_int_t nxt_shm_open(nxt_task_t *task, size_t size); #endif /* _NXT_PORT_MEMORY_H_INCLUDED_ */ -- cgit