#include <XrdOssMio.hh>
Static Public Member Functions | |
static void | Display (XrdSysError &Eroute) |
static int | getOpts (char *path, int popts) |
static char | isAuto () |
static char | isOn () |
static XrdOssMioFile * | Map (char *path, int fd, int opts) |
static void * | preLoad (void *arg) |
static void | Recycle (XrdOssMioFile *mp) |
static void | Set (int V_off, int V_preld, int V_chklok, int V_chkmap, int V_chkkeep) |
static void | Set (long long V_max) |
Static Private Member Functions | |
static int | Reclaim (off_t amount) |
static int | Reclaim (XrdOssMioFile *mp) |
Static Private Attributes | |
static XrdOucHash< XrdOssMioFile > | MM_Hash |
static XrdSysMutex | MM_Mutex |
static XrdOssMioFile * | MM_Perm |
static XrdOssMioFile * | MM_Idle |
static XrdOssMioFile * | MM_IdleLast |
static char | MM_on |
static char | MM_chk |
static char | MM_chklok |
static char | MM_chkmap |
static char | MM_chkkeep |
static char | MM_okmlock |
static char | MM_preld |
static long long | MM_max |
static long long | MM_pagsz |
static long long | MM_pages |
static long long | MM_inuse |
Definition at line 26 of file XrdOssMio.hh.
void XrdOssMio::Display | ( | XrdSysError & | Eroute | ) | [static] |
Definition at line 66 of file XrdOssMio.cc.
References MM_chkkeep, MM_chklok, MM_chkmap, MM_max, MM_on, MM_preld, XrdSysError::Say(), and snprintf.
Referenced by XrdOssSys::Config_Display().
int XrdOssMio::getOpts | ( | char * | path, | |
int | popts | |||
) | [static] |
Definition at line 82 of file XrdOssMio.cc.
References MM_chkkeep, MM_chklok, MM_chkmap, OSSMIO_MLOK, OSSMIO_MMAP, OSSMIO_MPRM, stat, and strcpy().
Referenced by XrdOssFile::Open().
static char XrdOssMio::isAuto | ( | ) | [inline, static] |
Definition at line 33 of file XrdOssMio.hh.
References MM_chk.
Referenced by XrdOssSys::ConfigMio().
static char XrdOssMio::isOn | ( | ) | [inline, static] |
XrdOssMioFile * XrdOssMio::Map | ( | char * | path, | |
int | fd, | |||
int | opts | |||
) | [static] |
Definition at line 109 of file XrdOssMio.cc.
References XrdOucHash< T >::Add(), XrdOucTrace::bin2hex(), DEBUG, XrdSysError::Emsg(), ENOSYS, EPNAME, XrdOucHash< T >::Find(), fstat, XrdSysMutexHelper::Lock(), MM_Hash, MM_inuse, MM_max, MM_Mutex, MM_okmlock, MM_Perm, MM_preld, OSSMIO_MLOK, OSSMIO_MPRM, preLoad(), Reclaim(), XrdSysThread::Run(), and stat.
Referenced by XrdOssFile::Open().
void * XrdOssMio::preLoad | ( | void * | arg | ) | [static] |
Definition at line 236 of file XrdOssMio.cc.
References Reflex::Dummy::Base(), XrdOssMioFile::Base, MM_pagsz, Recycle(), and XrdOssMioFile::Size.
Referenced by Map().
void XrdOssMio::Recycle | ( | XrdOssMioFile * | mp | ) | [static] |
Definition at line 306 of file XrdOssMio.cc.
References XrdSysError::Emsg(), XrdOssMioFile::HashName, XrdOssMioFile::inUse, MM_Idle, MM_IdleLast, MM_Mutex, XrdOssMioFile::Next, OSSMIO_MPRM, and XrdOssMioFile::Status.
Referenced by XrdOssFile::Close(), and preLoad().
void XrdOssMio::Set | ( | int | V_off, | |
int | V_preld, | |||
int | V_chklok, | |||
int | V_chkmap, | |||
int | V_chkkeep | |||
) | [static] |
Definition at line 332 of file XrdOssMio.cc.
References MM_chk, MM_chkkeep, MM_chklok, MM_chkmap, MM_on, and MM_preld.
Referenced by XrdOssSys::ConfigMio(), and XrdOssSys::xmemf().
int XrdOssMio::Reclaim | ( | off_t | amount | ) | [static, private] |
Definition at line 259 of file XrdOssMio.cc.
References DEBUG, XrdOucHash< T >::Del(), EPNAME, XrdOssMioFile::HashName, MM_Hash, MM_Idle, MM_inuse, XrdOssMioFile::Next, and XrdOssMioFile::Size.
Referenced by Map().
int XrdOssMio::Reclaim | ( | XrdOssMioFile * | mp | ) | [static, private] |
Definition at line 281 of file XrdOssMio.cc.
References DEBUG, XrdOssMioFile::Dev, EPNAME, XrdOssMioFile::Ino, MM_Idle, MM_IdleLast, and XrdOssMioFile::Next.
XrdOucHash< XrdOssMioFile > XrdOssMio::MM_Hash [static, private] |
XrdSysMutex XrdOssMio::MM_Mutex [static, private] |
XrdOssMioFile * XrdOssMio::MM_Perm [static, private] |
XrdOssMioFile * XrdOssMio::MM_Idle [static, private] |
XrdOssMioFile * XrdOssMio::MM_IdleLast [static, private] |
char XrdOssMio::MM_on [static, private] |
char XrdOssMio::MM_chk [static, private] |
char XrdOssMio::MM_chklok [static, private] |
char XrdOssMio::MM_chkmap [static, private] |
char XrdOssMio::MM_chkkeep [static, private] |
char XrdOssMio::MM_okmlock [static, private] |
char XrdOssMio::MM_preld [static, private] |
long long XrdOssMio::MM_max [static, private] |
long long XrdOssMio::MM_pagsz [static, private] |
long long XrdOssMio::MM_pages [static, private] |
long long XrdOssMio::MM_inuse [static, private] |