summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/nxt_go_port_memory.h
blob: 558eb68f458ee700680707b648f1e2ee17c379a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

/*
 * Copyright (C) Max Romanov
 * Copyright (C) NGINX, Inc.
 */

#ifndef _NXT_GO_PORT_MEMORY_H_INCLUDED_
#define _NXT_GO_PORT_MEMORY_H_INCLUDED_


#include <nxt_main.h>
#include <nxt_port_memory_int.h>

#ifndef _NXT_GO_PROCESS_T_DEFINED_
#define _NXT_GO_PROCESS_T_DEFINED_
typedef struct nxt_go_process_s nxt_go_process_t;
#endif

typedef struct nxt_go_port_mmap_s nxt_go_port_mmap_t;

struct nxt_go_port_mmap_s {
    nxt_port_mmap_header_t  *hdr;
};

struct nxt_port_mmap_header_s *
nxt_go_port_mmap_get(nxt_go_process_t *process, nxt_port_id_t port_id,
    nxt_chunk_id_t *c, nxt_bool_t tracking);


#endif /* _NXT_GO_PORT_MEMORY_H_INCLUDED_ */