XRootD
Loading...
Searching...
No Matches
XrdSsiShMam.cc File Reference
#include <fcntl.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <unistd.h>
#include <sys/file.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <zlib.h>
#include <iostream>
#include "XrdSsi/XrdSsiShMam.hh"
#include "XrdSys/XrdSysE2T.hh"
+ Include dependency graph for XrdSsiShMam.cc:

Go to the source code of this file.

Macros

#define ITEM_KEY(x)   (char *)x + sizeof(MemItem) + keyPos
 
#define ITEM_VAL(x)   (char *)x + sizeof(MemItem)
 
#define ITEM_VOF(x)   (char *)x + sizeof(MemItem) - shmBase
 
#define OF(args)   args
 
#define SHMADDR(type, offs)   (type *)(shmBase + offs)
 
#define SHMINFO(x)   ((ShmInfo *)shmBase)->x
 
#define SHMOFFS(addr)   (char *)addr - shmBase
 

Macro Definition Documentation

◆ ITEM_KEY

#define ITEM_KEY ( x)    (char *)x + sizeof(MemItem) + keyPos

◆ ITEM_VAL

#define ITEM_VAL ( x)    (char *)x + sizeof(MemItem)

◆ ITEM_VOF

#define ITEM_VOF ( x)    (char *)x + sizeof(MemItem) - shmBase

Definition at line 96 of file XrdSsiShMam.cc.

Referenced by XrdSsiShMam::AddItem().

◆ OF

#define OF ( args)    args

Definition at line 53 of file XrdSsiShMam.cc.

◆ SHMADDR

#define SHMADDR ( type,
offs )   (type *)(shmBase + offs)

Definition at line 88 of file XrdSsiShMam.cc.

Referenced by XrdSsiShMam::Attach(), XrdSsiShMam::Create(), and XrdSsiShMam::Resize().

◆ SHMINFO

◆ SHMOFFS

#define SHMOFFS ( addr)    (char *)addr - shmBase

Definition at line 90 of file XrdSsiShMam.cc.

Referenced by XrdSsiShMam::AddItem(), and XrdSsiShMam::DelItem().