|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Active (connected) libfabric endpoint with send, receive, RMA read and write calls and their blocking _sync variants. More...
#include <Endpoint.hh>
Inherits Pds::Fabrics::EndpointBase.
Public Member Functions | |
| Endpoint (const char *addr, const char *port, uint64_t flags=0, Info *hints=0) | |
| Create an endpoint that owns a new Fabric for addr and port and its own queues. | |
| Endpoint (Fabric *fabric, EventQueue *eq=0, CompletionQueue *txcq=0, CompletionQueue *rxcq=0) | |
| Create an endpoint on an existing Fabric, using any supplied queues and creating the missing ones. | |
| ~Endpoint () | |
| Call shutdown() to close the libfabric endpoint; the base destructor then deletes owned queues and the fabric if owned. | |
| struct fid_ep * | endpoint () const |
| Return the libfabric fid_ep, or NULL before connect() or accept() and after shutdown(). | |
| void | shutdown () |
| Shut down and close the fid_ep if open and set the state to EP_INIT; queues and fabric are kept so that connect() or accept() can be called again. | |
| bool | connect (int timeout=-1, uint64_t txFlags=0, uint64_t rxFlags=0, void *context=NULL) |
| Create and enable the fid_ep, bind the event and completion queues, call fi_connect() to the destination address of the fabric info and wait (with timeout) for FI_CONNECTED. | |
| bool | accept (struct fi_info *remote_info, int timeout=-1, uint64_t txFlags=0, uint64_t rxFlags=0, void *context=NULL) |
| Like connect(), but the fid_ep is created from remote_info (a connection request) and fi_accept() is called before waiting for FI_CONNECTED. | |
| ssize_t | recv_comp_data (void *context=NULL) |
| Post a zero-length receive (fi_recv) for remote completion data; returns the fi_recv() result (-FI_EAGAIN is not recorded as an error). | |
| ssize_t | send (const void *buf, size_t len, void *context, const MemoryRegion *mr=NULL) |
| Post fi_send() of len bytes from buf. | |
| ssize_t | recv (void *buf, size_t len, void *context, const MemoryRegion *mr=NULL) |
| Post fi_recv() of up to len bytes into buf, with the same memory-region lookup as send(); returns the fi_recv() result. | |
| ssize_t | read (void *buf, size_t len, const RemoteAddress *raddr, void *context, const MemoryRegion *mr=NULL) |
| Post an RMA read (fi_read) of len bytes from raddr into buf, with the same memory-region lookup as send(); returns the fi_read() result. | |
| ssize_t | write (const void *buf, size_t len, const RemoteAddress *raddr, void *context, const MemoryRegion *mr=NULL) |
| Post an RMA write (fi_write) of len bytes from buf to raddr, with the same memory-region lookup and -FI_EAGAIN handling as send(). | |
| ssize_t | writedata (const void *buf, size_t len, const RemoteAddress *raddr, void *context, uint64_t data, const MemoryRegion *mr=NULL) |
| Post fi_writedata(), an RMA write of len bytes from buf to raddr that carries the immediate value data; memory-region lookup and -FI_EAGAIN handling as in send(). | |
| ssize_t | inject_writedata (const void *buf, size_t len, const RemoteAddress *raddr, uint64_t data) |
| Call fi_inject_writedata() for len bytes from buf to raddr with the immediate value data (no memory region, no context); -FI_EAGAIN handling as in send(). | |
| ssize_t | injectdata (const void *buf, size_t len, uint64_t data) |
| Call fi_injectdata() for len bytes from buf with the immediate value data; -FI_EAGAIN handling as in send(). | |
| ssize_t | send (const LocalAddress *laddr, void *context) |
| Call send() with the buffer, length and memory region of laddr. | |
| ssize_t | recv (LocalAddress *laddr, void *context) |
| Call recv() with the buffer, length and memory region of laddr. | |
| ssize_t | read (LocalAddress *laddr, const RemoteAddress *raddr, void *context) |
| Call read() with the buffer, length and memory region of laddr. | |
| ssize_t | write (const LocalAddress *laddr, const RemoteAddress *raddr, void *context) |
| Call write() with the buffer, length and memory region of laddr. | |
| ssize_t | writedata (const LocalAddress *laddr, const RemoteAddress *raddr, void *context, uint64_t data) |
| Call writedata() with the buffer, length and memory region of laddr. | |
| ssize_t | inject_writedata (const LocalAddress *laddr, const RemoteAddress *raddr, uint64_t data) |
| Call inject_writedata() with the buffer and length of laddr. | |
| ssize_t | injectdata (const LocalAddress *laddr, uint64_t data) |
| Call injectdata() with the buffer and length of laddr. | |
| ssize_t | sendv (LocalIOVec *iov, void *context) |
| Post fi_sendv() of the entries of iov. | |
| ssize_t | recvv (LocalIOVec *iov, void *context) |
| Post fi_recvv() into the entries of iov, with the same descriptor lookup as sendv(); returns the fi_recvv() result. | |
| ssize_t | recvmsg (Message *msg, uint64_t flags=0) |
| Post fi_recvmsg() for msg with flags, after the descriptor lookup on the IO vector of msg; returns the fi_recvmsg() result. | |
| ssize_t | sendmsg (Message *msg, uint64_t flags=0) |
| Post fi_sendmsg() for msg with flags, after the descriptor lookup on the IO vector of msg; -FI_EAGAIN handling as in send(). | |
| ssize_t | readv (LocalIOVec *iov, const RemoteAddress *raddr, void *context) |
| Post fi_readv() from raddr into the entries of iov, after the descriptor lookup; returns the fi_readv() result. | |
| ssize_t | writev (LocalIOVec *iov, const RemoteAddress *raddr, void *context) |
| Post fi_writev() of the entries of iov to raddr, after the descriptor lookup; -FI_EAGAIN handling as in send(). | |
| ssize_t | readmsg (RmaMessage *msg, uint64_t flags) |
| Post fi_readmsg() for msg with flags, after the descriptor lookup on the local IO vector of msg; returns the fi_readmsg() result. | |
| ssize_t | writemsg (RmaMessage *msg, uint64_t flags) |
| Post fi_writemsg() for msg with flags, after the descriptor lookup on the local IO vector of msg; -FI_EAGAIN handling as in send(). | |
| ssize_t | recv_comp_data_sync (CompletionQueue *cq, uint64_t *data=NULL) |
| Post a zero-length receive and wait (no timeout) on cq for a completion with FI_REMOTE_CQ_DATA and this call's context; its data is stored in data if data is non-null. | |
| ssize_t | send_sync (const void *buf, size_t len, const MemoryRegion *mr=NULL) |
| Blocking send(): post it, then wait (no timeout) on the transmit queue for a completion with this call's context and FI_SEND | FI_MSG. | |
| ssize_t | recv_sync (void *buf, size_t len, const MemoryRegion *mr=NULL) |
| Blocking recv(): post it, then wait (no timeout) on the receive queue for the matching completion (FI_RECV | FI_MSG). | |
| ssize_t | read_sync (void *buf, size_t len, const RemoteAddress *raddr, const MemoryRegion *mr=NULL) |
| Blocking read(): post it, then wait (no timeout) on the receive completion queue for the matching completion (FI_READ | FI_RMA). | |
| ssize_t | write_sync (const void *buf, size_t len, const RemoteAddress *raddr, const MemoryRegion *mr=NULL) |
| Blocking write(): post it, then wait (no timeout) on the transmit queue for the matching completion (FI_WRITE | FI_RMA). | |
| ssize_t | writedata_sync (const void *buf, size_t len, const RemoteAddress *raddr, uint64_t data, const MemoryRegion *mr=NULL) |
| Blocking writedata(): post it, then wait (no timeout) on the transmit queue for the matching completion (FI_WRITE | FI_RMA). | |
| ssize_t | send_sync (const LocalAddress *laddr) |
| Call send_sync() with the buffer, length and memory region of laddr. | |
| ssize_t | recv_sync (LocalAddress *laddr) |
| Call recv_sync() with the buffer, length and memory region of laddr. | |
| ssize_t | read_sync (LocalAddress *laddr, const RemoteAddress *raddr) |
| Call read_sync() with the buffer, length and memory region of laddr. | |
| ssize_t | write_sync (const LocalAddress *laddr, const RemoteAddress *raddr) |
| Call write_sync() with the buffer, length and memory region of laddr. | |
| ssize_t | writedata_sync (const LocalAddress *laddr, const RemoteAddress *raddr, uint64_t data) |
| Call writedata_sync() with the buffer, length and memory region of laddr. | |
| ssize_t | sendv_sync (LocalIOVec *iov) |
| Blocking sendv(): wait (no timeout) on the transmit queue for the matching completion (FI_SEND | FI_RMA). | |
| ssize_t | recvv_sync (LocalIOVec *iov) |
| Blocking recvv(): wait (no timeout) on the receive queue for the matching completion (FI_RECV | FI_RMA). | |
| ssize_t | recvmsg_sync (Message *msg, uint64_t flags=0) |
| Set the context of msg to a per-call value, call recvmsg() and wait (no timeout) on the receive queue for the matching completion (FI_RECV | FI_MSG). | |
| ssize_t | sendmsg_sync (Message *msg, uint64_t flags=0) |
| Set the context of msg to a per-call value, call sendmsg() and wait (no timeout) on the transmit queue for the matching completion (FI_SEND | FI_MSG). | |
| ssize_t | readv_sync (LocalIOVec *iov, const RemoteAddress *raddr) |
| Blocking readv(): wait (no timeout) on the receive queue for the matching completion (FI_READ | FI_RMA). | |
| ssize_t | writev_sync (LocalIOVec *iov, const RemoteAddress *raddr) |
| Meant as a blocking writev(), but the body calls readv() (not writev()) and then waits on the transmit queue for FI_WRITE | FI_RMA. | |
| ssize_t | readmsg_sync (RmaMessage *msg, uint64_t flags=0) |
| Set the context of msg to a per-call value, call readmsg() and wait (no timeout) on the receive queue for the matching completion (FI_READ | FI_RMA). | |
| ssize_t | writemsg_sync (RmaMessage *msg, uint64_t flags=0) |
| Set the context of msg to a per-call value, call writemsg() and wait (no timeout) on the transmit queue for the matching completion (FI_WRITE | FI_RMA). | |
Public Member Functions inherited from Pds::Fabrics::EndpointBase | |
| State | state () const |
| Return the current endpoint State. | |
| Fabric * | fabric () const |
| Return the Fabric used by this endpoint. | |
| EventQueue * | eq () const |
| Return the event queue. | |
| CompletionQueue * | txcq () const |
| Return the transmit completion queue. | |
| CompletionQueue * | rxcq () const |
| Return the receive completion queue. | |
| bool | event (uint32_t *event, void *entry, bool *cm_entry) |
| Read one event from the event queue without blocking (EventQueue::event()); returns false, copying the queue's error, if no event was read. | |
| bool | event_wait (uint32_t *event, void *entry, bool *cm_entry, int timeout=-1) |
| Wait for one event on the event queue with the given timeout (EventQueue::event_wait()); returns false, copying the queue's error, if no event was read. | |
| bool | event_error (struct fi_eq_err_entry *entry) |
| Read one error entry from the event queue into entry; returns false, copying the queue's error, if none could be read. | |
Public Member Functions inherited from Pds::Fabrics::ErrorHandler | |
| ErrorHandler () | |
| Allocate the message buffer and start with no error (FI_SUCCESS and a message built from the text None). | |
| virtual | ~ErrorHandler () |
| Free the message buffer. | |
| int | error_num () const |
| Return the last recorded error number (FI_SUCCESS if none). | |
| const char * | error () const |
| Return the last recorded error message. | |
| void | clear_error () |
| Reset the error number to FI_SUCCESS and the message to the no-error text. | |
Additional Inherited Members | |
Protected Member Functions inherited from Pds::Fabrics::EndpointBase | |
| EndpointBase (const char *addr, const char *port, uint64_t flags=0, Info *hints=0) | |
| EndpointBase (Fabric *fabric, EventQueue *eq=0, CompletionQueue *txcq=0, CompletionQueue *rxcq=0) | |
| virtual | ~EndpointBase () |
| bool | handle_event (ssize_t event_ret, bool *cm_entry, const char *cmd) |
| bool | initialize () |
Protected Member Functions inherited from Pds::Fabrics::ErrorHandler | |
| void | set_custom_error (const char *fmt,...) |
| void | set_error (const char *error_desc) |
Protected Attributes inherited from Pds::Fabrics::EndpointBase | |
| State | _state |
| const bool | _fab_owner |
| bool | _eq_owner |
| bool | _txcq_owner |
| bool | _rxcq_owner |
| Fabric * | _fabric |
| EventQueue * | _eq |
| CompletionQueue * | _txcq |
| CompletionQueue * | _rxcq |
Protected Attributes inherited from Pds::Fabrics::ErrorHandler | |
| int | _errno |
| char * | _error |
Active (connected) libfabric endpoint with send, receive, RMA read and write calls and their blocking _sync variants.
| Pds::Fabrics::Endpoint::Endpoint | ( | const char * | addr, |
| const char * | port, | ||
| uint64_t | flags = 0, |
||
| Info * | hints = 0 |
||
| ) |
Create an endpoint that owns a new Fabric for addr and port and its own queues.
| Pds::Fabrics::Endpoint::Endpoint | ( | Fabric * | fabric, |
| EventQueue * | eq = 0, |
||
| CompletionQueue * | txcq = 0, |
||
| CompletionQueue * | rxcq = 0 |
||
| ) |
Create an endpoint on an existing Fabric, using any supplied queues and creating the missing ones.
| Pds::Fabrics::Endpoint::~Endpoint | ( | ) |
Call shutdown() to close the libfabric endpoint; the base destructor then deletes owned queues and the fabric if owned.
| bool Pds::Fabrics::Endpoint::accept | ( | struct fi_info * | remote_info, |
| int | timeout = -1, |
||
| uint64_t | txFlags = 0, |
||
| uint64_t | rxFlags = 0, |
||
| void * | context = NULL |
||
| ) |
Like connect(), but the fid_ep is created from remote_info (a connection request) and fi_accept() is called before waiting for FI_CONNECTED.
| bool Pds::Fabrics::Endpoint::connect | ( | int | timeout = -1, |
| uint64_t | txFlags = 0, |
||
| uint64_t | rxFlags = 0, |
||
| void * | context = NULL |
||
| ) |
Create and enable the fid_ep, bind the event and completion queues, call fi_connect() to the destination address of the fabric info and wait (with timeout) for FI_CONNECTED.
Zero txFlags and rxFlags default to FI_TRANSMIT and FI_RECV for internally created queues. Returns false on any failure (error recorded); on success the state is EP_CONNECTED.
| struct fid_ep * Pds::Fabrics::Endpoint::endpoint | ( | ) | const |
Return the libfabric fid_ep, or NULL before connect() or accept() and after shutdown().
| ssize_t Pds::Fabrics::Endpoint::inject_writedata | ( | const LocalAddress * | laddr, |
| const RemoteAddress * | raddr, | ||
| uint64_t | data | ||
| ) |
Call inject_writedata() with the buffer and length of laddr.
| ssize_t Pds::Fabrics::Endpoint::inject_writedata | ( | const void * | buf, |
| size_t | len, | ||
| const RemoteAddress * | raddr, | ||
| uint64_t | data | ||
| ) |
Call fi_inject_writedata() for len bytes from buf to raddr with the immediate value data (no memory region, no context); -FI_EAGAIN handling as in send().
| ssize_t Pds::Fabrics::Endpoint::injectdata | ( | const LocalAddress * | laddr, |
| uint64_t | data | ||
| ) |
Call injectdata() with the buffer and length of laddr.
| ssize_t Pds::Fabrics::Endpoint::injectdata | ( | const void * | buf, |
| size_t | len, | ||
| uint64_t | data | ||
| ) |
Call fi_injectdata() for len bytes from buf with the immediate value data; -FI_EAGAIN handling as in send().
| ssize_t Pds::Fabrics::Endpoint::read | ( | LocalAddress * | laddr, |
| const RemoteAddress * | raddr, | ||
| void * | context | ||
| ) |
Call read() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::read | ( | void * | buf, |
| size_t | len, | ||
| const RemoteAddress * | raddr, | ||
| void * | context, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Post an RMA read (fi_read) of len bytes from raddr into buf, with the same memory-region lookup as send(); returns the fi_read() result.
| ssize_t Pds::Fabrics::Endpoint::read_sync | ( | LocalAddress * | laddr, |
| const RemoteAddress * | raddr | ||
| ) |
Call read_sync() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::read_sync | ( | void * | buf, |
| size_t | len, | ||
| const RemoteAddress * | raddr, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Blocking read(): post it, then wait (no timeout) on the receive completion queue for the matching completion (FI_READ | FI_RMA).
Returns 0 on success or a negative error.
| ssize_t Pds::Fabrics::Endpoint::readmsg | ( | RmaMessage * | msg, |
| uint64_t | flags | ||
| ) |
Post fi_readmsg() for msg with flags, after the descriptor lookup on the local IO vector of msg; returns the fi_readmsg() result.
| ssize_t Pds::Fabrics::Endpoint::readmsg_sync | ( | RmaMessage * | msg, |
| uint64_t | flags = 0 |
||
| ) |
Set the context of msg to a per-call value, call readmsg() and wait (no timeout) on the receive queue for the matching completion (FI_READ | FI_RMA).
| ssize_t Pds::Fabrics::Endpoint::readv | ( | LocalIOVec * | iov, |
| const RemoteAddress * | raddr, | ||
| void * | context | ||
| ) |
Post fi_readv() from raddr into the entries of iov, after the descriptor lookup; returns the fi_readv() result.
| ssize_t Pds::Fabrics::Endpoint::readv_sync | ( | LocalIOVec * | iov, |
| const RemoteAddress * | raddr | ||
| ) |
Blocking readv(): wait (no timeout) on the receive queue for the matching completion (FI_READ | FI_RMA).
| ssize_t Pds::Fabrics::Endpoint::recv | ( | LocalAddress * | laddr, |
| void * | context | ||
| ) |
Call recv() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::recv | ( | void * | buf, |
| size_t | len, | ||
| void * | context, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Post fi_recv() of up to len bytes into buf, with the same memory-region lookup as send(); returns the fi_recv() result.
| ssize_t Pds::Fabrics::Endpoint::recv_comp_data | ( | void * | context = NULL | ) |
Post a zero-length receive (fi_recv) for remote completion data; returns the fi_recv() result (-FI_EAGAIN is not recorded as an error).
| ssize_t Pds::Fabrics::Endpoint::recv_comp_data_sync | ( | CompletionQueue * | cq, |
| uint64_t * | data = NULL |
||
| ) |
Post a zero-length receive and wait (no timeout) on cq for a completion with FI_REMOTE_CQ_DATA and this call's context; its data is stored in data if data is non-null.
Returns 0 on success or a negative error.
| ssize_t Pds::Fabrics::Endpoint::recv_sync | ( | LocalAddress * | laddr | ) |
Call recv_sync() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::recv_sync | ( | void * | buf, |
| size_t | len, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Blocking recv(): post it, then wait (no timeout) on the receive queue for the matching completion (FI_RECV | FI_MSG).
Returns 0 on success or a negative error.
| ssize_t Pds::Fabrics::Endpoint::recvmsg | ( | Message * | msg, |
| uint64_t | flags = 0 |
||
| ) |
Post fi_recvmsg() for msg with flags, after the descriptor lookup on the IO vector of msg; returns the fi_recvmsg() result.
On failure the recorded error text names fi_readmsg.
| ssize_t Pds::Fabrics::Endpoint::recvmsg_sync | ( | Message * | msg, |
| uint64_t | flags = 0 |
||
| ) |
Set the context of msg to a per-call value, call recvmsg() and wait (no timeout) on the receive queue for the matching completion (FI_RECV | FI_MSG).
| ssize_t Pds::Fabrics::Endpoint::recvv | ( | LocalIOVec * | iov, |
| void * | context | ||
| ) |
Post fi_recvv() into the entries of iov, with the same descriptor lookup as sendv(); returns the fi_recvv() result.
| ssize_t Pds::Fabrics::Endpoint::recvv_sync | ( | LocalIOVec * | iov | ) |
Blocking recvv(): wait (no timeout) on the receive queue for the matching completion (FI_RECV | FI_RMA).
| ssize_t Pds::Fabrics::Endpoint::send | ( | const LocalAddress * | laddr, |
| void * | context | ||
| ) |
Call send() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::send | ( | const void * | buf, |
| size_t | len, | ||
| void * | context, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Post fi_send() of len bytes from buf.
If mr is NULL a registered region containing buf is looked up; -FI_EINVAL is returned if none is found or buf is outside mr. On -FI_EAGAIN the transmit queue is polled once without waiting and -FI_EAGAIN (or that poll's error) is returned.
| ssize_t Pds::Fabrics::Endpoint::send_sync | ( | const LocalAddress * | laddr | ) |
Call send_sync() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::send_sync | ( | const void * | buf, |
| size_t | len, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Blocking send(): post it, then wait (no timeout) on the transmit queue for a completion with this call's context and FI_SEND | FI_MSG.
Returns 0 on success or a negative error.
| ssize_t Pds::Fabrics::Endpoint::sendmsg | ( | Message * | msg, |
| uint64_t | flags = 0 |
||
| ) |
Post fi_sendmsg() for msg with flags, after the descriptor lookup on the IO vector of msg; -FI_EAGAIN handling as in send().
| ssize_t Pds::Fabrics::Endpoint::sendmsg_sync | ( | Message * | msg, |
| uint64_t | flags = 0 |
||
| ) |
Set the context of msg to a per-call value, call sendmsg() and wait (no timeout) on the transmit queue for the matching completion (FI_SEND | FI_MSG).
| ssize_t Pds::Fabrics::Endpoint::sendv | ( | LocalIOVec * | iov, |
| void * | context | ||
| ) |
Post fi_sendv() of the entries of iov.
Missing descriptors are looked up among the registered regions of the fabric (-FI_EINVAL if any stay unresolved); -FI_EAGAIN handling as in send().
| ssize_t Pds::Fabrics::Endpoint::sendv_sync | ( | LocalIOVec * | iov | ) |
Blocking sendv(): wait (no timeout) on the transmit queue for the matching completion (FI_SEND | FI_RMA).
|
virtual |
Shut down and close the fid_ep if open and set the state to EP_INIT; queues and fabric are kept so that connect() or accept() can be called again.
Reimplemented from Pds::Fabrics::EndpointBase.
| ssize_t Pds::Fabrics::Endpoint::write | ( | const LocalAddress * | laddr, |
| const RemoteAddress * | raddr, | ||
| void * | context | ||
| ) |
Call write() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::write | ( | const void * | buf, |
| size_t | len, | ||
| const RemoteAddress * | raddr, | ||
| void * | context, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Post an RMA write (fi_write) of len bytes from buf to raddr, with the same memory-region lookup and -FI_EAGAIN handling as send().
| ssize_t Pds::Fabrics::Endpoint::write_sync | ( | const LocalAddress * | laddr, |
| const RemoteAddress * | raddr | ||
| ) |
Call write_sync() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::write_sync | ( | const void * | buf, |
| size_t | len, | ||
| const RemoteAddress * | raddr, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Blocking write(): post it, then wait (no timeout) on the transmit queue for the matching completion (FI_WRITE | FI_RMA).
Returns 0 on success or a negative error.
| ssize_t Pds::Fabrics::Endpoint::writedata | ( | const LocalAddress * | laddr, |
| const RemoteAddress * | raddr, | ||
| void * | context, | ||
| uint64_t | data | ||
| ) |
Call writedata() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::writedata | ( | const void * | buf, |
| size_t | len, | ||
| const RemoteAddress * | raddr, | ||
| void * | context, | ||
| uint64_t | data, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Post fi_writedata(), an RMA write of len bytes from buf to raddr that carries the immediate value data; memory-region lookup and -FI_EAGAIN handling as in send().
| ssize_t Pds::Fabrics::Endpoint::writedata_sync | ( | const LocalAddress * | laddr, |
| const RemoteAddress * | raddr, | ||
| uint64_t | data | ||
| ) |
Call writedata_sync() with the buffer, length and memory region of laddr.
| ssize_t Pds::Fabrics::Endpoint::writedata_sync | ( | const void * | buf, |
| size_t | len, | ||
| const RemoteAddress * | raddr, | ||
| uint64_t | data, | ||
| const MemoryRegion * | mr = NULL |
||
| ) |
Blocking writedata(): post it, then wait (no timeout) on the transmit queue for the matching completion (FI_WRITE | FI_RMA).
Returns 0 on success or a negative error.
| ssize_t Pds::Fabrics::Endpoint::writemsg | ( | RmaMessage * | msg, |
| uint64_t | flags | ||
| ) |
Post fi_writemsg() for msg with flags, after the descriptor lookup on the local IO vector of msg; -FI_EAGAIN handling as in send().
| ssize_t Pds::Fabrics::Endpoint::writemsg_sync | ( | RmaMessage * | msg, |
| uint64_t | flags = 0 |
||
| ) |
Set the context of msg to a per-call value, call writemsg() and wait (no timeout) on the transmit queue for the matching completion (FI_WRITE | FI_RMA).
| ssize_t Pds::Fabrics::Endpoint::writev | ( | LocalIOVec * | iov, |
| const RemoteAddress * | raddr, | ||
| void * | context | ||
| ) |
Post fi_writev() of the entries of iov to raddr, after the descriptor lookup; -FI_EAGAIN handling as in send().
| ssize_t Pds::Fabrics::Endpoint::writev_sync | ( | LocalIOVec * | iov, |
| const RemoteAddress * | raddr | ||
| ) |