Squid Web Cache master
Loading...
Searching...
No Matches
DiskDaemonDiskIOModule.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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#include "squid.h"
11#include "DiskdIOStrategy.h"
13#include "mgr/Registration.h"
14#include "Store.h"
15
17{
18 ModuleAdd(*this);
19}
20
26
27void
29{
30 /* We may be reused - for instance in coss - eventually.
31 * When we do, we either need per-using-module stats (
32 * no singleton pattern), or we need to refcount the
33 * initialisation level and handle multiple clients.
34 * RBC - 20030718.
35 */
37 memset(&diskd_stats, '\0', sizeof(diskd_stats));
38
39 initialised = true;
40
42}
43
44void
49
50void
55
61
63
64char const *
66{
67 return "DiskDaemon";
68}
69
#define assert(EX)
Definition assert.h:17
static DiskDaemonDiskIOModule & GetInstance()
DiskIOStrategy * createStrategy() override
static DiskDaemonDiskIOModule Instance
char const * type() const override
static void ModuleAdd(DiskIOModule &)
static Pointer Create(const Mgr::CommandPointer &aCmd)
diskd_stats_t diskd_stats
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)