#include <XrdOucCacheReal.hh>
|
| void | eMsg (const char *Path, const char *What, long long xOff, int xLen, int ec) |
| |
| int | Detach (XrdOucCacheIO *ioP) |
| |
| char * | Get (XrdOucCacheIO *ioP, long long lAddr, int &rGot, int &bIO) |
| |
| int | ioAdd (XrdOucCacheIO *KeyVal, int &iNum) |
| |
| int | ioDel (XrdOucCacheIO *KeyVal, int &iNum) |
| |
| int | ioEnt (XrdOucCacheIO *kVal) |
| |
| int | ioLookup (int &pip, int hip, void *kval) |
| |
| int | Ref (char *Addr, int rAmt, int sFlags=0) |
| |
| void | Trunc (XrdOucCacheIO *ioP, long long lAddr) |
| |
| void | Upd (char *Addr, int wAmt, int wOff) |
| |
| void | PreRead (XrdOucCacheReal::prTask *prReq) |
| |
|
| static const long long | Shift = 48 |
| |
| static const long long | Strip = 0x00000000ffffffffLL |
| |
| static const long long | MaxFO = 0x000007ffffffffffLL |
| |
References aprDefault, Base, XrdOucCache::Parms::CacheSize, XrdOucCache::canPreRead, Dbg, XrdOucCache::Debug, XrdOucCacheSlot::HLink, hMax, HNum, hTab, XrdOucCacheSlot::Init(), XrdOucCache::isServer, XrdOucCacheSlot::lenMask, Lgs, XrdOucCache::logStats, XrdOucCache::Parms::Max2Cache, maxCache, maxFiles, XrdOucCache::Parms::MaxFiles, XrdOucCacheSlot::SlotList::Next, OffMask, Options, XrdOucCache::Parms::Options, XrdOucCacheSlot::Own, XrdOucCache::Parms::PageSize, XrdOucCacheSlot::SlotList::Prev, prNum, XrdSysThread::Run(), sBeg, SegCnt, SegFull, SegShft, SegSize, sEnd, XrdOucCacheData::setAPR(), sFree, Slash, Slots, and XrdOucCacheRealPRXeq().
| XrdOucCacheReal::~XrdOucCacheReal |
( |
| ) |
|
References Attached, AZero, Base, CMutex, XrdSysMutex::Lock(), XrdSysSemaphore::Post(), prMutex, prNum, prReady, prStop, SegCnt, SegSize, Slots, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Reimplemented from XrdOucCacheDram.
References Attached, AZero, CMutex, XrdOucCacheSlot::SlotState::Data, Dbg, ioAdd(), XrdOucCache::isStructured, XrdOucCache::optADB, XrdOucCache::optFIS, XrdOucCache::optFIU, Options, XrdOucCache::optRW, XrdOucCacheIO::Path(), SegCnt, Shift, Slots, XrdOucCacheSlot::Status, and XrdOucCacheData.
References Attached, AZero, CMutex, XrdOucCacheSlot::Contents, Dbg, XrdOucCacheSlot::Hide(), HNum, ioDel(), XrdOucCacheSlot::SlotState::LRU, XrdOucCacheSlot::SlotList::Next, XrdOucCacheSlot::Own, XrdOucCacheSlot::Owner(), XrdOucCacheIO::Path(), XrdSysSemaphore::Post(), XrdOucCacheSlot::Pull(), Slash, Slots, XrdOucCacheSlot::Status, and XrdOucCacheSlot::unRef().
Referenced by XrdOucCacheData::Detach().
| void XrdOucCacheReal::eMsg |
( |
const char * |
Path, |
|
|
const char * |
What, |
|
|
long long |
xOff, |
|
|
int |
xLen, |
|
|
int |
ec |
|
) |
| |
|
private |
| char * XrdOucCacheReal::Get |
( |
XrdOucCacheIO * |
ioP, |
|
|
long long |
lAddr, |
|
|
int & |
rGot, |
|
|
int & |
bIO |
|
) |
| |
|
private |
References Base, CMutex, XrdOucCacheSlot::Contents, XrdOucCacheSlot::Count, Dbg, eMsg(), XrdOucCacheSlot::Find(), XrdOucCacheSlot::Hide(), XrdOucCacheSlot::HLink, HNum, XrdOucCacheSlot::inTrans, XrdOucCacheSlot::SlotState::inUse, XrdOucCacheSlot::ioQ::ioEnd, XrdOucCacheSlot::isNew, XrdOucCacheSlot::isShort, XrdOucCacheSlot::lenMask, XrdSysMutex::Lock(), XrdOucCacheSlot::SlotState::LRU, XrdOucCacheSlot::SlotList::Next, XrdOucCacheSlot::ioQ::Next, XrdOucCacheSlot::Own, XrdOucCacheSlot::Owner(), XrdOucCacheIO::Path(), XrdSysSemaphore::Post(), XrdOucCacheSlot::Pull(), XrdOucCacheIO::Read(), SegCnt, SegFull, SegShft, SegSize, Shift, Slash, Slots, XrdOucCacheSlot::Status, Strip, XrdSysMutex::UnLock(), XrdOucCacheSlot::unRef(), XrdSysSemaphore::Wait(), and XrdOucCacheSlot::SlotState::waitQ.
Referenced by XrdOucCacheData::Preread(), XrdOucCacheData::Read(), and XrdOucCacheData::Write().
| int XrdOucCacheReal::ioAdd |
( |
XrdOucCacheIO * |
KeyVal, |
|
|
int & |
iNum |
|
) |
| |
|
private |
| int XrdOucCacheReal::ioDel |
( |
XrdOucCacheIO * |
KeyVal, |
|
|
int & |
iNum |
|
) |
| |
|
private |
| int XrdOucCacheReal::ioLookup |
( |
int & |
pip, |
|
|
int |
hip, |
|
|
void * |
kval |
|
) |
| |
|
inlineprivate |
| int XrdOucCacheReal::isAttached |
( |
| ) |
|
|
inlinevirtual |
| void XrdOucCacheReal::PreRead |
( |
| ) |
|
References XrdOucCacheReal::prTask::Data, Dbg, XrdSysMutex::Lock(), XrdOucCacheReal::prTask::Next, XrdSysSemaphore::Post(), XrdOucCacheData::Preread(), prFirst, prLast, prMutex, prNum, prReady, prStop, XrdSysMutex::UnLock(), and XrdSysSemaphore::Wait().
Referenced by XrdOucCacheData::Preread(), XrdOucCacheData::QueuePR(), and XrdOucCacheRealPRXeq().
| int XrdOucCacheReal::Ref |
( |
char * |
Addr, |
|
|
int |
rAmt, |
|
|
int |
sFlags = 0 |
|
) |
| |
|
private |
References Base, CMutex, XrdOucCacheSlot::Contents, XrdOucCacheSlot::Count, Dbg, XrdOucCacheSlot::SlotState::inUse, XrdOucCacheSlot::isSUSE, XrdOucCacheSlot::lenMask, XrdSysMutex::Lock(), XrdOucCacheSlot::reRef(), SegShft, SegSize, Slots, XrdOucCacheSlot::Status, XrdSysMutex::UnLock(), and XrdOucCacheSlot::unRef().
Referenced by XrdOucCacheData::Preread(), and XrdOucCacheData::Read().
| void XrdOucCacheReal::Trunc |
( |
XrdOucCacheIO * |
ioP, |
|
|
long long |
lAddr |
|
) |
| |
|
private |
References CMutex, XrdOucCacheSlot::Contents, Dbg, XrdOucCacheSlot::Hide(), HNum, XrdOucCacheSlot::SlotList::Next, XrdOucCacheSlot::Own, XrdOucCacheSlot::Owner(), XrdOucCacheIO::Path(), XrdOucCacheSlot::Pull(), SegCnt, Shift, Slash, Slots, and XrdOucCacheSlot::unRef().
Referenced by XrdOucCacheData::Trunc().
| void XrdOucCacheReal::Upd |
( |
char * |
Addr, |
|
|
int |
wAmt, |
|
|
int |
wOff |
|
) |
| |
|
private |
References Base, CMutex, XrdOucCacheSlot::Contents, XrdOucCacheSlot::Count, Dbg, XrdOucCacheSlot::SlotState::inUse, XrdOucCacheSlot::isShort, XrdOucCacheSlot::lenMask, XrdSysMutex::Lock(), XrdOucCacheSlot::reRef(), SegShft, Slots, XrdOucCacheSlot::Status, and XrdSysMutex::UnLock().
Referenced by XrdOucCacheData::Write().
| int XrdOucCacheReal::Attached |
|
private |
| char* XrdOucCacheReal::Base |
|
private |
| char XrdOucCacheReal::Dbg |
|
private |
| int XrdOucCacheReal::hMax |
|
private |
| long long XrdOucCacheReal::HNum |
|
private |
| int* XrdOucCacheReal::hTab |
|
private |
| char XrdOucCacheReal::Lgs |
|
private |
| int XrdOucCacheReal::maxCache |
|
private |
| int XrdOucCacheReal::maxFiles |
|
private |
| const long long XrdOucCacheReal::MaxFO = 0x000007ffffffffffLL |
|
staticprivate |
| long long XrdOucCacheReal::OffMask |
|
private |
| int XrdOucCacheReal::Options |
|
private |
| prTask* XrdOucCacheReal::prFirst |
|
private |
| prTask* XrdOucCacheReal::prLast |
|
private |
| int XrdOucCacheReal::prNum |
|
private |
| int XrdOucCacheReal::sBeg |
|
private |
| long long XrdOucCacheReal::SegCnt |
|
private |
| int XrdOucCacheReal::SegFull |
|
private |
| long long XrdOucCacheReal::SegShft |
|
private |
| long long XrdOucCacheReal::SegSize |
|
private |
| int XrdOucCacheReal::sEnd |
|
private |
| int XrdOucCacheReal::sFree |
|
private |
| const long long XrdOucCacheReal::Shift = 48 |
|
staticprivate |
| int* XrdOucCacheReal::Slash |
|
private |
Referenced by Attach(), Detach(), Get(), ioAdd(), ioDel(), ioLookup(), Ref(), Trunc(), Upd(), XrdOucCacheReal(), and ~XrdOucCacheReal().
| const long long XrdOucCacheReal::Strip = 0x00000000ffffffffLL |
|
staticprivate |
The documentation for this class was generated from the following files: