summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_memory.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-07-25 11:06:32 +0300
committerMax Romanov <max.romanov@nginx.com>2020-07-25 11:06:32 +0300
commitc617480eefc0822d52f9153906bb526ad483b9a3 (patch)
tree8764ebe8defc21eabd2930e8d41293c3804c7b84 /src/nxt_port_memory.h
parent10f90f0d483d1a46a58d7fd42fb406cd46a9c1a6 (diff)
downloadunit-c617480eefc0822d52f9153906bb526ad483b9a3.tar.gz
unit-c617480eefc0822d52f9153906bb526ad483b9a3.tar.bz2
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.
Diffstat (limited to 'src/nxt_port_memory.h')
-rw-r--r--src/nxt_port_memory.h1
1 files changed, 1 insertions, 0 deletions
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_ */