|
Squid Web Cache master
|
#include <DiskdIOStrategy.h>
Public Member Functions | |
| void | put (ssize_t) |
| void * | get (ssize_t *) |
| void | init (int ikey, int magic2) |
| SharedMemory () | |
Public Attributes | |
| int | nbufs |
| char * | buf |
| char * | inuse_map |
| int | id |
Definition at line 17 of file DiskdIOStrategy.h.
|
inline |
Definition at line 24 of file DiskdIOStrategy.h.
| void * SharedMemory::get | ( | ssize_t * | shm_offset | ) |
Definition at line 223 of file DiskdIOStrategy.cc.
References assert, buf, CBIT_SET, CBIT_TEST, DBG_IMPORTANT, debugs, diskd_stats, inuse_map, diskd_stats_t::max_shmuse, nbufs, SHMBUF_BLKSZ, and diskd_stats_t::shmbuf_count.
Referenced by DiskdFile::create(), DiskdFile::open(), DiskdFile::read(), DiskdIOStrategy::unlinkFile(), and DiskdFile::write().
Definition at line 258 of file DiskdIOStrategy.cc.
References buf, CBIT_SET, DBG_CRITICAL, debugs, diskd_stats, fatal(), int, inuse_map, MYNAME, nbufs, put(), SHMBUF_BLKSZ, diskd_stats_t::shmbuf_count, xcalloc(), and xstrerr().
Referenced by DiskdIOStrategy::init().
| void SharedMemory::put | ( | ssize_t | offset | ) |
Definition at line 209 of file DiskdIOStrategy.cc.
References assert, CBIT_CLR, CBIT_TEST, diskd_stats, inuse_map, nbufs, SHMBUF_BLKSZ, and diskd_stats_t::shmbuf_count.
Referenced by DiskdIOStrategy::callback(), init(), and DiskdIOStrategy::SEND().
| char* SharedMemory::buf |
Definition at line 27 of file DiskdIOStrategy.h.
Referenced by get(), init(), DiskdFile::readDone(), and DiskdIOStrategy::unlinkDone().
| int SharedMemory::id |
Definition at line 29 of file DiskdIOStrategy.h.
| char* SharedMemory::inuse_map |
Definition at line 28 of file DiskdIOStrategy.h.
| int SharedMemory::nbufs |
Definition at line 26 of file DiskdIOStrategy.h.