forward.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 /* DEBUG: section 13 High Level Memory Pool Management */
10 
11 #ifndef _SQUID_SRC_MEM_FORWARD_H
12 #define _SQUID_SRC_MEM_FORWARD_H
13 
14 #include "mem/AllocatorProxy.h"
15 
16 #include <iosfwd>
17 
18 class StoreEntry;
19 class MemPoolStats;
20 class MemPoolMeter;
21 
23 namespace Mem
24 {
25 void Init();
26 void Report();
27 void Stats(StoreEntry *);
28 void CleanIdlePools(void *unused);
29 void Report(std::ostream &);
30 void PoolReport(const MemPoolStats * mp_st, const MemPoolMeter * AllMeter, std::ostream &);
31 };
32 
33 extern const size_t squidSystemPageSize;
34 
36 typedef void FREE(void *);
37 
39 typedef enum {
51 } mem_type;
52 
54 void memClean(void);
55 void memInitModule(void);
56 void memCleanModule(void);
57 void memConfigure(void);
59 void *memAllocate(mem_type);
60 void *memAllocString(size_t net_size, size_t * gross_size);
61 void *memAllocBuf(size_t net_size, size_t * gross_size);
62 void *memAllocRigid(size_t net_size);
63 void *memReallocBuf(void *buf, size_t net_size, size_t * gross_size);
65 void memFree(void *, int type);
66 void memFreeString(size_t size, void *);
67 void memFreeBuf(size_t size, void *);
68 void memFreeRigid(void *, size_t net_size);
69 FREE *memFreeBufFunc(size_t size);
70 int memInUse(mem_type);
71 void memDataInit(mem_type, const char *, size_t, int, bool doZero = true);
72 void memCheckInit(void);
73 
74 #endif /* _SQUID_SRC_MEM_FORWARD_H */
75 
void Stats(StoreEntry *)
Definition: old_api.cc:166
int type
Definition: errorpage.cc:78
void memCleanModule(void)
Definition: stub_libmem.cc:32
void Report()
Definition: old_api.cc:479
void CleanIdlePools(void *unused)
Definition: old_api.cc:400
void memConfigure(void)
Definition: old_api.cc:407
void FREE(void *)
Definition: forward.h:36
void * memReallocBuf(void *buf, size_t net_size, size_t *gross_size)
Definition: old_api.cc:360
void * memAllocBuf(size_t net_size, size_t *gross_size)
Definition: old_api.cc:345
void * memAllocRigid(size_t net_size)
Definition: old_api.cc:249
void * memAllocate(mem_type)
Allocate one element from the typed pool.
Definition: old_api.cc:214
void Init()
Definition: old_api.cc:437
void memFreeRigid(void *, size_t net_size)
Definition: old_api.cc:291
void const char * buf
Definition: stub_helper.cc:16
void * memAllocString(size_t net_size, size_t *gross_size)
Definition: old_api.cc:230
void memFreeBuf(size_t size, void *)
Definition: old_api.cc:384
int memInUse(mem_type)
Definition: old_api.cc:527
Memory Management.
void memDataInit(mem_type, const char *, size_t, int, bool doZero=true)
Definition: old_api.cc:201
void memFree(void *, int type)
Free a element allocated by memAllocate()
Definition: old_api.cc:222
void memFreeString(size_t size, void *)
Definition: old_api.cc:277
void memInitModule(void)
Definition: stub_libmem.cc:31
mem_type
Types of memory pool which do not yet use MEMPROXY_CLASS() API.
Definition: forward.h:39
void memCheckInit(void)
Definition: old_api.cc:498
void memClean(void)
Main cleanup handler.
Definition: old_api.cc:512
const size_t squidSystemPageSize
FREE * memFreeBufFunc(size_t size)
Definition: old_api.cc:577
int size
Definition: ModDevPoll.cc:77
void PoolReport(const MemPoolStats *mp_st, const MemPoolMeter *AllMeter, std::ostream &)
Definition: old_api.cc:609

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors