XRootD
XrdSsiShMat::CRZParms Struct Reference

#include <XrdSsiShMat.hh>

+ Collaboration diagram for XrdSsiShMat::CRZParms:

Public Member Functions

 CRZParms ()
 
 ~CRZParms ()
 

Public Attributes

int indexSz
 Number of four byte hash table entries to create. More...
 
int maxKeys
 Maximum number of keys-value pairs expected in table. More...
 
int maxKLen
 The maximum acceptable key length. More...
 
int mode
 Filemode for the newly created file. More...
 
signed char multW
 
signed char reUse
 
char rsvd [6]
 Reserved for future options. More...
 

Detailed Description

Create a new shared memory segment and associated file specified at object instantiation (see New() method). Created segments must be made visible to other processes using the Export() method. This allows the table to be preloaded with initial values before the table is made visible.

Parameters
parmsCreate parameters described by CRParms. All uninitialized members in this struct must be specified.
Returns
true - The shared memory was attached, the table can be used.
false - The shared memory could not be attached, errno holds reason.

Definition at line 99 of file XrdSsiShMat.hh.

Constructor & Destructor Documentation

◆ CRZParms()

XrdSsiShMat::CRZParms::CRZParms ( )
inline

Definition at line 114 of file XrdSsiShMat.hh.

114  : indexSz(0), maxKeys(0), maxKLen(0), mode(0640),
115  multW(-1), reUse(-1)
116  {memset(rsvd, -1, sizeof(rsvd));}
char rsvd[6]
Reserved for future options.
Definition: XrdSsiShMat.hh:112
int maxKeys
Maximum number of keys-value pairs expected in table.
Definition: XrdSsiShMat.hh:101
int maxKLen
The maximum acceptable key length.
Definition: XrdSsiShMat.hh:102
int mode
Filemode for the newly created file.
Definition: XrdSsiShMat.hh:103
int indexSz
Number of four byte hash table entries to create.
Definition: XrdSsiShMat.hh:100

References rsvd.

◆ ~CRZParms()

XrdSsiShMat::CRZParms::~CRZParms ( )
inline

Definition at line 117 of file XrdSsiShMat.hh.

117 {}

Member Data Documentation

◆ indexSz

int XrdSsiShMat::CRZParms::indexSz

Number of four byte hash table entries to create.

Definition at line 100 of file XrdSsiShMat.hh.

Referenced by XrdSsi::ShMap< T >::Create(), XrdSsiShMam::Create(), XrdSsi::ShMap< T >::Resize(), and XrdSsiShMam::Resize().

◆ maxKeys

int XrdSsiShMat::CRZParms::maxKeys

Maximum number of keys-value pairs expected in table.

Definition at line 101 of file XrdSsiShMat.hh.

Referenced by XrdSsi::ShMap< T >::Create(), XrdSsiShMam::Create(), XrdSsi::ShMap< T >::Resize(), and XrdSsiShMam::Resize().

◆ maxKLen

int XrdSsiShMat::CRZParms::maxKLen

The maximum acceptable key length.

Definition at line 102 of file XrdSsiShMat.hh.

Referenced by XrdSsi::ShMap< T >::Create(), XrdSsiShMam::Create(), XrdSsi::ShMap< T >::Resize(), and XrdSsiShMam::Resize().

◆ mode

int XrdSsiShMat::CRZParms::mode

Filemode for the newly created file.

Definition at line 103 of file XrdSsiShMat.hh.

Referenced by XrdSsi::ShMap< T >::Create(), XrdSsiShMam::Create(), XrdSsi::ShMap< T >::Resize(), and XrdSsiShMam::Resize().

◆ multW

signed char XrdSsiShMat::CRZParms::multW

1: Table can have multiple processes writing. 0: Table has only one process writing. -1: Use default or, for resize, previous setting.

Definition at line 104 of file XrdSsiShMat.hh.

Referenced by XrdSsi::ShMap< T >::Create(), XrdSsiShMam::Create(), XrdSsi::ShMap< T >::Resize(), and XrdSsiShMam::Resize().

◆ reUse

signed char XrdSsiShMat::CRZParms::reUse

1: Reuse deleted objects. 0: Never reuse deleted objects. -1: Use default or, for resize, previous setting.

Definition at line 108 of file XrdSsiShMat.hh.

Referenced by XrdSsi::ShMap< T >::Create(), XrdSsiShMam::Create(), XrdSsi::ShMap< T >::Resize(), and XrdSsiShMam::Resize().

◆ rsvd

char XrdSsiShMat::CRZParms::rsvd[6]

Reserved for future options.

Definition at line 112 of file XrdSsiShMat.hh.

Referenced by CRZParms().


The documentation for this struct was generated from the following file: