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

Owns a struct fi_msg_rma built from a LocalIOVec and a RemoteIOVec, for fi_readmsg() and fi_writemsg(). More...

#include <Endpoint.hh>

Public Member Functions

 RmaMessage ()
 Construct with no IO vectors; the fi_msg_rma is allocated but its fields are not initialized.
 
 RmaMessage (LocalIOVec *loc_iov, RemoteIOVec *rem_iov, void *context, uint64_t data=0)
 Construct from the given IO vectors (each copied into the fi_msg_rma only if non-null), a context pointer and an immediate data value.
 
 ~RmaMessage ()
 Delete the owned fi_msg_rma; the IO vectors are not deleted.
 
LocalIOVec * loc_iov () const
 Return the local IO vector.
 
RemoteIOVec * rem_iov () const
 Return the remote IO vector.
 
void loc_iov (LocalIOVec *loc_iov)
 Set the local IO vector and copy its iovec array, descriptors and current count into the message; does nothing if loc_iov is NULL.
 
void rem_iov (RemoteIOVec *rem_iov)
 Set the remote IO vector and copy its entry array and current count into the message; does nothing if rem_iov is NULL.
 
const struct iovec * msg_iov () const
 Return the iovec array pointer stored in the message.
 
size_t iov_count () const
 Return the iovec count stored in the message.
 
void ** desc () const
 Return the descriptor array pointer stored in the message.
 
const struct fi_rma_iov * rma_iov () const
 Return the fi_rma_iov array pointer stored in the message.
 
size_t rma_iov_count () const
 Return the remote entry count stored in the message.
 
void * context () const
 Return the context pointer stored in the message.
 
void context (void *context)
 Set the context pointer stored in the message.
 
uint64_t data () const
 Return the immediate data value stored in the message.
 
void data (uint64_t data)
 Set the immediate data value stored in the message.
 
const struct fi_msg_rma * msg () const
 Return the underlying struct fi_msg_rma.
 

Detailed Description

Owns a struct fi_msg_rma built from a LocalIOVec and a RemoteIOVec, for fi_readmsg() and fi_writemsg().

Constructor & Destructor Documentation

◆ RmaMessage() [1/2]

Pds::Fabrics::RmaMessage::RmaMessage ( )

Construct with no IO vectors; the fi_msg_rma is allocated but its fields are not initialized.

◆ RmaMessage() [2/2]

Pds::Fabrics::RmaMessage::RmaMessage ( LocalIOVec *  loc_iov,
RemoteIOVec *  rem_iov,
void *  context,
uint64_t  data = 0 
)

Construct from the given IO vectors (each copied into the fi_msg_rma only if non-null), a context pointer and an immediate data value.

◆ ~RmaMessage()

Pds::Fabrics::RmaMessage::~RmaMessage ( )

Delete the owned fi_msg_rma; the IO vectors are not deleted.

Member Function Documentation

◆ context() [1/2]

void * Pds::Fabrics::RmaMessage::context ( ) const

Return the context pointer stored in the message.

◆ context() [2/2]

void Pds::Fabrics::RmaMessage::context ( void *  context)

Set the context pointer stored in the message.

◆ data() [1/2]

uint64_t Pds::Fabrics::RmaMessage::data ( ) const

Return the immediate data value stored in the message.

◆ data() [2/2]

void Pds::Fabrics::RmaMessage::data ( uint64_t  data)

Set the immediate data value stored in the message.

◆ desc()

void ** Pds::Fabrics::RmaMessage::desc ( ) const

Return the descriptor array pointer stored in the message.

◆ iov_count()

size_t Pds::Fabrics::RmaMessage::iov_count ( ) const

Return the iovec count stored in the message.

◆ loc_iov() [1/2]

LocalIOVec * Pds::Fabrics::RmaMessage::loc_iov ( ) const

Return the local IO vector.

◆ loc_iov() [2/2]

void Pds::Fabrics::RmaMessage::loc_iov ( LocalIOVec *  loc_iov)

Set the local IO vector and copy its iovec array, descriptors and current count into the message; does nothing if loc_iov is NULL.

◆ msg()

const struct fi_msg_rma * Pds::Fabrics::RmaMessage::msg ( ) const

Return the underlying struct fi_msg_rma.

◆ msg_iov()

const struct iovec * Pds::Fabrics::RmaMessage::msg_iov ( ) const

Return the iovec array pointer stored in the message.

◆ rem_iov() [1/2]

RemoteIOVec * Pds::Fabrics::RmaMessage::rem_iov ( ) const

Return the remote IO vector.

◆ rem_iov() [2/2]

void Pds::Fabrics::RmaMessage::rem_iov ( RemoteIOVec *  rem_iov)

Set the remote IO vector and copy its entry array and current count into the message; does nothing if rem_iov is NULL.

◆ rma_iov()

const struct fi_rma_iov * Pds::Fabrics::RmaMessage::rma_iov ( ) const

Return the fi_rma_iov array pointer stored in the message.

◆ rma_iov_count()

size_t Pds::Fabrics::RmaMessage::rma_iov_count ( ) const

Return the remote entry count stored in the message.


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