forward.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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;
19
21namespace Mem
22{
23class Meter;
24class PoolMeter;
25class PoolStats;
26
27void Init();
28void Stats(StoreEntry *);
29void CleanIdlePools(void *unused);
30void Report(std::ostream &);
31void PoolReport(const PoolStats *, const PoolMeter *, std::ostream &);
32};
33
34extern const size_t squidSystemPageSize;
35
37typedef void FREE(void *);
38
40typedef enum {
53
55void memClean(void);
56void memInitModule(void);
57void memCleanModule(void);
58void memConfigure(void);
61void *memAllocString(size_t net_size, size_t * gross_size);
62void *memAllocBuf(size_t net_size, size_t * gross_size);
63void *memAllocRigid(size_t net_size);
64void *memReallocBuf(void *buf, size_t net_size, size_t * gross_size);
66void memFree(void *, int type);
67void memFreeString(size_t size, void *);
68void memFreeBuf(size_t size, void *);
69void memFreeRigid(void *, size_t net_size);
70FREE *memFreeBufFunc(size_t size);
72void memDataInit(mem_type, const char *, size_t, int, bool doZero = true);
73void memCheckInit(void);
74size_t memStringCount();
75
76#endif /* _SQUID_SRC_MEM_FORWARD_H */
77
int size
Definition: ModDevPoll.cc:75
const size_t squidSystemPageSize
void memCleanModule(void)
void FREE(void *)
Definition: forward.h:37
void memClean(void)
Main cleanup handler.
Definition: old_api.cc:485
void memFreeBuf(size_t size, void *)
Definition: minimal.cc:90
size_t memStringCount()
Definition: old_api.cc:264
void memFree(void *, int type)
Free a element allocated by memAllocate()
Definition: minimal.cc:60
void memCheckInit(void)
Definition: old_api.cc:471
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:501
void memDataInit(mem_type, const char *, size_t, int, bool doZero=true)
Definition: old_api.cc:200
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:40
@ MEM_NONE
Definition: forward.h:41
@ MEM_32K_BUF
Definition: forward.h:46
@ MEM_2K_BUF
Definition: forward.h:42
@ MEM_4K_BUF
Definition: forward.h:43
@ MEM_64K_BUF
Definition: forward.h:47
@ MEM_DWRITE_Q
Definition: forward.h:49
@ MEM_MAX
Definition: forward.h:51
@ MEM_MD5_DIGEST
Definition: forward.h:50
@ MEM_8K_BUF
Definition: forward.h:44
@ MEM_16K_BUF
Definition: forward.h:45
@ MEM_DREAD_CTRL
Definition: forward.h:48
void memFreeRigid(void *, size_t net_size)
Definition: minimal.cc:84
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:102
Memory Management.
Definition: Allocator.h:17
void PoolReport(const PoolStats *, const PoolMeter *, std::ostream &)
Definition: old_api.cc:581
void Init()
Definition: old_api.cc:425
void Report(std::ostream &)
Definition: old_api.cc:651
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