src/os/win32/ngx_shmem.h - nginx source code

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.     HANDLE       handle;
  14.     ngx_log_t   *log;
  15.     ngx_uint_t   exists;   /* unsigned  exists:1;  */
  16. } ngx_shm_t;


  17. ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
  18. ngx_int_t ngx_shm_remap(ngx_shm_t *shm, u_char *addr);
  19. void ngx_shm_free(ngx_shm_t *shm);

  20. extern ngx_uint_t  ngx_allocation_granularity;


  21. #endif /* _NGX_SHMEM_H_INCLUDED_ */