Motr  M0
rpc_machine.h File Reference
#include "lib/bob.h"
#include "lib/tlist.h"
#include "lib/thread.h"
#include "lib/chan.h"
#include "sm/sm.h"
#include "net/net.h"
Include dependency graph for rpc_machine.h:

Go to the source code of this file.

Data Structures

struct  m0_rpc_stats
 
struct  m0_rpc_machine
 
struct  m0_rpc_machine_watch
 

Macros

#define __MOTR_RPC_MACHINE_H__
 

Enumerations

enum  { M0_RPC_DEF_MAX_RPC_MSG_SIZE = 1 << 17 }
 

Functions

M0_INTERNAL int m0_rpc_machine_init (struct m0_rpc_machine *machine, struct m0_net_domain *net_dom, const char *ep_addr, struct m0_reqh *reqh, struct m0_net_buffer_pool *receive_pool, uint32_t colour, m0_bcount_t msg_size, uint32_t queue_len)
 
void m0_rpc_machine_fini (struct m0_rpc_machine *machine)
 
void m0_rpc_machine_get_stats (struct m0_rpc_machine *machine, struct m0_rpc_stats *stats, bool reset)
 
M0_INTERNAL void m0_rpc_machine_drain_item_sources (struct m0_rpc_machine *machine, uint32_t max_per_source)
 
M0_INTERNAL const char * m0_rpc_machine_ep (const struct m0_rpc_machine *rmach)
 
M0_INTERNAL void m0_rpc_machine_lock (struct m0_rpc_machine *machine)
 
M0_INTERNAL void m0_rpc_machine_unlock (struct m0_rpc_machine *machine)
 
M0_INTERNAL bool m0_rpc_machine_is_locked (const struct m0_rpc_machine *machine)
 
M0_INTERNAL bool m0_rpc_machine_is_not_locked (const struct m0_rpc_machine *machine)
 
 M0_BOB_DECLARE (extern, m0_rpc_machine)
 
void m0_rpc_machine_watch_attach (struct m0_rpc_machine_watch *watch)
 
void m0_rpc_machine_watch_detach (struct m0_rpc_machine_watch *watch)
 

Macro Definition Documentation

◆ __MOTR_RPC_MACHINE_H__

#define __MOTR_RPC_MACHINE_H__

Definition at line 26 of file rpc_machine.h.