Motr  M0
drlink.h File Reference
#include "lib/types.h"
Include dependency graph for drlink.h:

Go to the source code of this file.

Macros

#define __MOTR_DTM0_DRLINK_H__
 

Functions

M0_INTERNAL int m0_dtm0_rpc_link_mod_init (void)
 
M0_INTERNAL void m0_dtm0_rpc_link_mod_fini (void)
 
M0_INTERNAL int m0_dtm0_req_post (struct m0_dtm0_service *svc, struct m0_be_op *op, const struct dtm0_req_fop *req, const struct m0_fid *tgt, const struct m0_fom *parent_fom, bool wait_for_ack)
 

Macro Definition Documentation

◆ __MOTR_DTM0_DRLINK_H__

#define __MOTR_DTM0_DRLINK_H__

Definition at line 26 of file drlink.h.

Function Documentation

◆ m0_dtm0_req_post()

M0_INTERNAL int m0_dtm0_req_post ( struct m0_dtm0_service svc,
struct m0_be_op op,
const struct dtm0_req_fop req,
const struct m0_fid tgt,
const struct m0_fom parent_fom,
bool  wait_for_ack 
)

Asynchronously send a DTM0 message to a remote DTM0 service.

Parameters
svclocal DTM0 service.
opBE op to wait for completion. Could be NULL.
reqDTM0 message to be sent.
tgtFID of the remote DTM0 service.
parent_fomFOM that caused this DTM0 message (used by ADDB).
wait_for_ackDetermines whether the local service should wait for a reply from the counterpart. NOTE: it has nothing to do with blocking API. It just lets the FOM to revolve one more time. TODO: This flag will likely be removed after testing with HA. TODO: Add a co_op or clink to support blocking mode.
Returns
An error is returned if there is not enough resources (-ENOMEM) or if the remote service does not exist in the conf cache (-ENOENT).

Asynchronously send a DTM0 message to a remote DTM0 service.

Parameters
svclocal DTM0 service.
reqDTM0 message to be sent.
tgtFID of the remote DTM0 service.
parent_fomFOM that caused this DTM0 message (used by ADDB).
wait_for_ackDetermines whether the local service should wait for a reply from the counterpart. TODO: this may be converted into a proper clink and/or co_op later.
Returns
An error is returned if there is not enough resources (-ENOMEM) or if the remote service does not exist in the conf cache (-ENOENT).

Definition at line 536 of file drlink.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_dtm0_rpc_link_mod_fini()

M0_INTERNAL void m0_dtm0_rpc_link_mod_fini ( void  )

Definition at line 87 of file drlink.c.

Here is the caller graph for this function:

◆ m0_dtm0_rpc_link_mod_init()

M0_INTERNAL int m0_dtm0_rpc_link_mod_init ( void  )

Definition at line 77 of file drlink.c.

Here is the call graph for this function:
Here is the caller graph for this function: