lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Pds::Eb::EbLfCltLink Class Reference

Client side of an EbLfLink; writes data into the server's registered memory with RDMA. More...

#include <EbLfLink.hh>

Inherits Pds::Eb::EbLfLink.

Public Member Functions

 EbLfCltLink (Fabrics::Endpoint *, const unsigned rxDepth, const unsigned &verbose, volatile uint64_t &pending, volatile uint64_t &posting)
 Construct the base EbLfLink with rxDepth receive credits.
 
int exchangeId (unsigned id, const char *peer)
 Synchronize with the server, send id, receive the server's ID (stored as id()), then synchronize again.
 
int prepare (void *region, size_t lclSize, size_t rmtSize, const char *peer)
 Synchronize with the server.
 
int prepare (void *region, size_t size, const char *peer)
 Call prepare(region, size, size, peer).
 
int setupMr (void *region, size_t size)
 Register (or reuse) a local memory region for size bytes at region with Pds::Eb::setupMr(); returns -1 if there is no endpoint.
 
int post (const void *buf, size_t len, size_t offset, uint64_t immData, void *ctx=nullptr)
 RDMA-write len bytes from buf to the server's region at offset, with immediate data immData (Endpoint::writedata()), retrying -FI_EAGAIN for up to 300 s.
 

Additional Inherited Members

Detailed Description

Client side of an EbLfLink; writes data into the server's registered memory with RDMA.

Constructor & Destructor Documentation

◆ EbLfCltLink()

Pds::Eb::EbLfCltLink::EbLfCltLink ( Fabrics::Endpoint *  ,
const unsigned  rxDepth,
const unsigned &  verbose,
volatile uint64_t &  pending,
volatile uint64_t &  posting 
)

Construct the base EbLfLink with rxDepth receive credits.

Member Function Documentation

◆ exchangeId()

int Pds::Eb::EbLfCltLink::exchangeId ( unsigned  id,
const char *  peer 
)

Synchronize with the server, send id, receive the server's ID (stored as id()), then synchronize again.

Returns 0 or the first error.

◆ post()

int Pds::Eb::EbLfCltLink::post ( const void *  buf,
size_t  len,
size_t  offset,
uint64_t  immData,
void *  ctx = nullptr 
)

RDMA-write len bytes from buf to the server's region at offset, with immediate data immData (Endpoint::writedata()), retrying -FI_EAGAIN for up to 300 s.

This peer's bit is set in the posting word while sending. Returns 0 or the last error.

◆ prepare() [1/2]

int Pds::Eb::EbLfCltLink::prepare ( void *  region,
size_t  lclSize,
size_t  rmtSize,
const char *  peer 
)

Synchronize with the server.

If region is non-null, send rmtSize, register (or reuse) a local memory region of lclSize bytes at region and receive the server's region description. Then synchronize again. Returns 0 or the first error.

◆ prepare() [2/2]

int Pds::Eb::EbLfCltLink::prepare ( void *  region,
size_t  size,
const char *  peer 
)

Call prepare(region, size, size, peer).

◆ setupMr()

int Pds::Eb::EbLfCltLink::setupMr ( void *  region,
size_t  size 
)

Register (or reuse) a local memory region for size bytes at region with Pds::Eb::setupMr(); returns -1 if there is no endpoint.


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