src/os/unix/ngx_shmem.h - nginx-1.7.10

Data types defined

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_SHMEM_H_INCLUDED_
  6. #define _NGX_SHMEM_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>


  9. typedef struct {
  10.     u_char      *addr;
  11.     size_t       size;
  12.     ngx_str_t    name;
  13.     ngx_log_t   *log;
  14.     ngx_uint_t   exists;   /* unsigned  exists:1;  */
  15. } ngx_shm_t;


  16. ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
  17. void ngx_shm_free(ngx_shm_t *shm);


  18. #endif /* _NGX_SHMEM_H_INCLUDED_ */