Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.15.12 ]​[ nginx-1.16.0 ]​

0001 
0002 /*
0003  * Copyright (C) Igor Sysoev
0004  * Copyright (C) Nginx, Inc.
0005  */
0006 
0007 
0008 #ifndef _NGX_SHMEM_H_INCLUDED_
0009 #define _NGX_SHMEM_H_INCLUDED_
0010 
0011 
0012 #include <ngx_config.h>
0013 #include <ngx_core.h>
0014 
0015 
0016 typedef struct {
0017     u_char      *addr;
0018     size_t       size;
0019     ngx_str_t    name;
0020     ngx_log_t   *log;
0021     ngx_uint_t   exists;   /* unsigned  exists:1;  */
0022 } ngx_shm_t;
0023 
0024 
0025 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
0026 void ngx_shm_free(ngx_shm_t *shm);
0027 
0028 
0029 #endif /* _NGX_SHMEM_H_INCLUDED_ */