xrootd
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
XrdOssMio Class Reference

#include <XrdOssMio.hh>

Collaboration diagram for XrdOssMio:
Collaboration graph
[legend]

Static Public Member Functions

static void Display (XrdSysError &Eroute)
 
static char isAuto ()
 
static char isOn ()
 
static XrdOssMioFileMap (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_check)
 
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< XrdOssMioFileMM_Hash
 
static XrdSysMutex MM_Mutex
 
static XrdOssMioFileMM_Perm = 0
 
static XrdOssMioFileMM_Idle = 0
 
static XrdOssMioFileMM_IdleLast = 0
 
static char MM_on = 1
 
static char MM_chk = 0
 
static char MM_okmlock = 1
 
static char MM_preld = 0
 
static long long MM_max = MM_pagsz*MM_pages/2
 
static long long MM_pagsz = (long long)sysconf(_SC_PAGESIZE)
 
static long long MM_pages = (long long)sysconf(_SC_PHYS_PAGES)
 
static long long MM_inuse = 0
 

Member Function Documentation

void XrdOssMio::Display ( XrdSysError Eroute)
static
static char XrdOssMio::isAuto ( )
inlinestatic

References MM_chk.

Referenced by XrdOssSys::ConfigMio().

static char XrdOssMio::isOn ( )
inlinestatic

References MM_on.

Referenced by XrdOssSys::ConfigMio().

XrdOssMioFile * XrdOssMio::Map ( char *  path,
int  fd,
int  opts 
)
static
void * XrdOssMio::preLoad ( void *  arg)
static

References XrdOssMioFile::Base, MM_pagsz, Recycle(), and XrdOssMioFile::Size.

Referenced by Map().

int XrdOssMio::Reclaim ( off_t  amount)
staticprivate
int XrdOssMio::Reclaim ( XrdOssMioFile mp)
staticprivate
void XrdOssMio::Recycle ( XrdOssMioFile mp)
static
void XrdOssMio::Set ( int  V_off,
int  V_preld,
int  V_check 
)
static

References MM_chk, MM_on, and MM_preld.

Referenced by XrdOssSys::ConfigMio(), and XrdOssSys::xmemf().

void XrdOssMio::Set ( long long  V_max)
static

References MM_max, MM_pages, and MM_pagsz.

Member Data Documentation

char XrdOssMio::MM_chk = 0
staticprivate

Referenced by Display(), isAuto(), and Set().

XrdOucHash< XrdOssMioFile > XrdOssMio::MM_Hash
staticprivate

Referenced by Map(), and Reclaim().

XrdOssMioFile * XrdOssMio::MM_Idle = 0
staticprivate

Referenced by Reclaim(), and Recycle().

XrdOssMioFile * XrdOssMio::MM_IdleLast = 0
staticprivate

Referenced by Reclaim(), and Recycle().

long long XrdOssMio::MM_inuse = 0
staticprivate

Referenced by Map(), and Reclaim().

long long XrdOssMio::MM_max = MM_pagsz*MM_pages/2
staticprivate

Referenced by Display(), Map(), and Set().

XrdSysMutex XrdOssMio::MM_Mutex
staticprivate

Referenced by Map(), and Recycle().

char XrdOssMio::MM_okmlock = 1
staticprivate

Referenced by Map().

char XrdOssMio::MM_on = 1
staticprivate

Referenced by Display(), isOn(), and Set().

long long XrdOssMio::MM_pages = (long long)sysconf(_SC_PHYS_PAGES)
staticprivate

Referenced by Set().

long long XrdOssMio::MM_pagsz = (long long)sysconf(_SC_PAGESIZE)
staticprivate

Referenced by preLoad(), and Set().

XrdOssMioFile * XrdOssMio::MM_Perm = 0
staticprivate

Referenced by Map().

char XrdOssMio::MM_preld = 0
staticprivate

Referenced by Display(), Map(), and Set().


The documentation for this class was generated from the following files: