xrootd
Static Public Member Functions | Static Private Member Functions | Static Private Attributes

XrdOssMio Class Reference

#include <XrdOssMio.hh>

Collaboration diagram for XrdOssMio:
Collaboration graph
[legend]

List of all members.

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 ( ) [inline, static]

References MM_chk.

Referenced by XrdOssSys::ConfigMio().

static char XrdOssMio::isOn ( ) [inline, static]

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 ( XrdOssMioFile mp) [static, private]
int XrdOssMio::Reclaim ( off_t  amount) [static, private]
void XrdOssMio::Recycle ( XrdOssMioFile mp) [static]
void XrdOssMio::Set ( long long  V_max) [static]

References MM_max, MM_pages, and MM_pagsz.

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().


Member Data Documentation

char XrdOssMio::MM_chk = 0 [static, private]

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

Referenced by Map(), and Reclaim().

XrdOssMioFile * XrdOssMio::MM_Idle = 0 [static, private]

Referenced by Reclaim(), and Recycle().

XrdOssMioFile * XrdOssMio::MM_IdleLast = 0 [static, private]

Referenced by Reclaim(), and Recycle().

long long XrdOssMio::MM_inuse = 0 [static, private]

Referenced by Map(), and Reclaim().

long long XrdOssMio::MM_max = MM_pagsz*MM_pages/2 [static, private]

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

XrdSysMutex XrdOssMio::MM_Mutex [static, private]

Referenced by Map(), and Recycle().

char XrdOssMio::MM_okmlock = 1 [static, private]

Referenced by Map().

char XrdOssMio::MM_on = 1 [static, private]

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

long long XrdOssMio::MM_pages = (long long)sysconf(_SC_PHYS_PAGES) [static, private]

Referenced by Set().

long long XrdOssMio::MM_pagsz = (long long)sysconf(_SC_PAGESIZE) [static, private]

Referenced by preLoad(), and Set().

XrdOssMioFile * XrdOssMio::MM_Perm = 0 [static, private]

Referenced by Map().

char XrdOssMio::MM_preld = 0 [static, private]

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


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