Motr  M0
console_mesg.h File Reference
#include "fop/fop.h"
#include "rpc/rpc.h"
Include dependency graph for console_mesg.h:

Go to the source code of this file.

Macros

#define __MOTR_CONSOLE_MESG_H__
 

Functions

M0_INTERNAL void m0_cons_fop_name_print (const struct m0_fop_type *ftype)
 
M0_INTERNAL int m0_cons_fop_send (struct m0_fop *fop, struct m0_rpc_session *session, m0_time_t resend_interval, uint64_t nr_sent_max)
 Builds and send FOP using rpc_post and waits for reply. More...
 
M0_INTERNAL int m0_cons_fop_show (struct m0_fop_type *fopt)
 Iterate over FOP fields and print names. More...
 
M0_INTERNAL void m0_cons_fop_list_show (void)
 Helper function to print list of FOPs. More...
 

Macro Definition Documentation

◆ __MOTR_CONSOLE_MESG_H__

#define __MOTR_CONSOLE_MESG_H__

Definition at line 26 of file console_mesg.h.

Function Documentation

◆ m0_cons_fop_list_show()

M0_INTERNAL void m0_cons_fop_list_show ( void  )

Helper function to print list of FOPs.

Definition at line 88 of file console_mesg.c.

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

◆ m0_cons_fop_name_print()

M0_INTERNAL void m0_cons_fop_name_print ( const struct m0_fop_type ftype)

Prints name and opcode of FOP. It can be used to print more info if required.

Definition at line 34 of file console_mesg.c.

Here is the caller graph for this function:

◆ m0_cons_fop_send()

M0_INTERNAL int m0_cons_fop_send ( struct m0_fop fop,
struct m0_rpc_session session,
m0_time_t  resend_interval,
uint64_t  nr_sent_max 
)

Builds and send FOP using rpc_post and waits for reply.

Parameters
fopFOP to be send.
sessionRPC connection session.
resend_interval
nr_sent_maxAttempt to send fop at most nr_sent_max number of times after each resend_interval; timeout fop if reply is not received after nr_sent_max attempts.

Definition at line 39 of file console_mesg.c.

Here is the call graph for this function:

◆ m0_cons_fop_show()

M0_INTERNAL int m0_cons_fop_show ( struct m0_fop_type fopt)

Iterate over FOP fields and print names.

Definition at line 68 of file console_mesg.c.

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