forward.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
18class StoreEntry;
19class MemPoolStats;
20class MemPoolMeter;
21
23namespace Mem
24{
25void Init();
26void Report();
27void Stats(StoreEntry *);
28void CleanIdlePools(void *unused);
29void Report(std::ostream &);
30void PoolReport(const MemPoolStats * mp_st, const MemPoolMeter * AllMeter, std::ostream &);
31};
32
33extern const size_t squidSystemPageSize;
34
36typedef void FREE(void *);
37
39typedef enum {
52
54void memClean(void);
55void memInitModule(void);
56void memCleanModule(void);
57void memConfigure(void);
60void *memAllocString(size_t net_size, size_t * gross_size);
61void *memAllocBuf(size_t net_size, size_t * gross_size);
62void *memAllocRigid(size_t net_size);
63void *memReallocBuf(void *buf, size_t net_size, size_t * gross_size);
65void memFree(void *, int type);
66void memFreeString(size_t size, void *);
67void memFreeBuf(size_t size, void *);
68void memFreeRigid(void *, size_t net_size);
69FREE *memFreeBufFunc(size_t size);
71void memDataInit(mem_type, const char *, size_t, int, bool doZero = true);
72void memCheckInit(void);
73size_t memStringCount();
74
75#endif /* _SQUID_SRC_MEM_FORWARD_H */
76
int size
Definition: ModDevPoll.cc:75
int type
Definition: errorpage.cc:152
const size_t squidSystemPageSize
void memCleanModule(void)
void FREE(void *)
Definition: forward.h:36
void memClean(void)
Main cleanup handler.
Definition: old_api.cc:494
void memFreeBuf(size_t size, void *)
Definition: minimal.cc:84
size_t memStringCount()
Definition: old_api.cc:264
void memFree(void *, int type)
Free a element allocated by memAllocate()
Definition: minimal.cc:60
void * memAllocate(mem_type)
Allocate one element from the typed pool.
Definition: old_api.cc:213
void * memAllocBuf(size_t net_size, size_t *gross_size)
Definition: minimal.cc:46
int memInUse(mem_type)
Definition: old_api.cc:509
void memDataInit(mem_type, const char *, size_t, int, bool doZero=true)
Definition: old_api.cc:200
void memCheckInit(void)
Definition: stub_libmem.cc:84
void * memAllocRigid(size_t net_size)
Definition: minimal.cc:78
void memInitModule(void)
void memFreeString(size_t size, void *)
Definition: minimal.cc:72
void * memReallocBuf(void *buf, size_t net_size, size_t *gross_size)
Definition: minimal.cc:53
mem_type
Types of memory pool which do not yet use MEMPROXY_CLASS() API.
Definition: forward.h:39
@ MEM_NONE
Definition: forward.h:40
@ MEM_32K_BUF
Definition: forward.h:45
@ MEM_2K_BUF
Definition: forward.h:41
@ MEM_4K_BUF
Definition: forward.h:42
@ MEM_64K_BUF
Definition: forward.h:46
@ MEM_DWRITE_Q
Definition: forward.h:48
@ MEM_MAX
Definition: forward.h:50
@ MEM_MD5_DIGEST
Definition: forward.h:49
@ MEM_8K_BUF
Definition: forward.h:43
@ MEM_16K_BUF
Definition: forward.h:44
@ MEM_DREAD_CTRL
Definition: forward.h:47
void memFreeRigid(void *, size_t net_size)
Definition: old_api.cc:290
void * memAllocString(size_t net_size, size_t *gross_size)
Definition: minimal.cc:66
void memConfigure(void)
Definition: old_api.cc:406
FREE * memFreeBufFunc(size_t size)
Definition: minimal.cc:96
Memory Management.
void Init()
Definition: old_api.cc:425
void Report()
Definition: old_api.cc:460
void PoolReport(const MemPoolStats *mp_st, const MemPoolMeter *AllMeter, std::ostream &)
Definition: old_api.cc:591
void CleanIdlePools(void *unused)
Definition: old_api.cc:399
void Stats(StoreEntry *)
Definition: old_api.cc:165

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors