Go to the source code of this file.
Functions | |
bool | unlinkdNeeded (void) |
void | unlinkdInit (void) |
void | unlinkdClose (void) |
void | unlinkdUnlink (const char *) |
Function Documentation
◆ unlinkdClose()
void unlinkdClose | ( | void | ) |
Definition at line 133 of file unlinkd.cc.
References comm_close, DBG_IMPORTANT, debugs, getCurrentTime(), hIpc, pid, unlinkd_rfd, and unlinkd_wfd.
Referenced by SquidShutdown().
◆ unlinkdInit()
void unlinkdInit | ( | void | ) |
Definition at line 193 of file unlinkd.cc.
References assert, commUnsetFdTimeout(), commUnsetNonBlocking(), Config, DBG_IMPORTANT, debugs, fatal(), fd_note(), FD_PIPE, fd_table, hIpc, IPC_FIFO, IPC_STREAM, IPC_TCP_SOCKET, ipcCreate(), pid, SquidConfig::Program, Ip::Address::setLocalhost(), SquidConfig::unlinkd, unlinkd_rfd, and unlinkd_wfd.
Referenced by mainInitialize(), and mainReconfigureFinish().
◆ unlinkdNeeded()
bool unlinkdNeeded | ( | void | ) |
Definition at line 180 of file unlinkd.cc.
References SquidConfig::cacheSwap, Config, Store::DiskConfig::n_configured, and Store::DiskConfig::swapDirs.
Referenced by mainInitialize(), and mainReconfigureFinish().
◆ unlinkdUnlink()
void unlinkdUnlink | ( | const char * | path | ) |
Definition at line 39 of file unlinkd.cc.
References assert, DBG_IMPORTANT, debug_trap(), debugs, StatCounters::disk, MAXPATHLEN, StatCounters::requests, safeunlink(), statCounter, StatCounters::syscalls, StatCounters::unlink, UNLINKD_QUEUE_LIMIT, unlinkd_rfd, unlinkd_wfd, StatCounters::unlinks, xstrerr(), and xstrncpy().
Referenced by BlockingIOStrategy::unlinkFile(), DiskdIOStrategy::unlinkFile(), IpcIoIOStrategy::unlinkFile(), and MmappedIOStrategy::unlinkFile().