2004-09-28 16:34:51 +08:00
|
|
|
|
|
|
|
/*
|
2004-09-30 00:00:49 +08:00
|
|
|
* Copyright (C) Igor Sysoev
|
2004-09-28 16:34:51 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-09-15 18:25:32 +08:00
|
|
|
#ifndef _NGX_SHMEM_H_INCLUDED_
|
|
|
|
#define _NGX_SHMEM_H_INCLUDED_
|
2004-06-18 01:18:53 +08:00
|
|
|
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
|
2006-02-02 02:22:15 +08:00
|
|
|
typedef struct {
|
2009-04-17 03:25:09 +08:00
|
|
|
u_char *addr;
|
|
|
|
size_t size;
|
|
|
|
ngx_str_t name;
|
|
|
|
ngx_log_t *log;
|
2006-02-02 02:22:15 +08:00
|
|
|
} ngx_shm_t;
|
|
|
|
|
|
|
|
|
|
|
|
ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
|
|
|
|
void ngx_shm_free(ngx_shm_t *shm);
|
2004-06-18 01:18:53 +08:00
|
|
|
|
|
|
|
|
2006-09-15 18:25:32 +08:00
|
|
|
#endif /* _NGX_SHMEM_H_INCLUDED_ */
|