Motr  M0
frmops.c File Reference
#include "lib/trace.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/errno.h"
#include "lib/arith.h"
#include "lib/bob.h"
#include "lib/finject.h"
#include "motr/magic.h"
#include "net/net.h"
#include "rpc/rpc_internal.h"
#include "rpc/service.h"
Include dependency graph for frmops.c:

Go to the source code of this file.

Data Structures

struct  rpc_buffer
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_RPC
 

Enumerations

enum  { M0_RPC_TMO = 8 }
 

Functions

static int packet_ready (struct m0_rpc_packet *p)
 
static int net_buffer_allocate (struct m0_net_buffer *netbuf, struct m0_net_domain *ndom, m0_bcount_t buf_size)
 
static void net_buffer_free (struct m0_net_buffer *netbuf, struct m0_net_domain *ndom)
 
static void bufvec_geometry (struct m0_net_domain *ndom, m0_bcount_t buf_size, int32_t *out_nr_segments, m0_bcount_t *out_segment_size)
 
static void item_done (struct m0_rpc_packet *p, struct m0_rpc_item *item, int rc)
 
static void item_fail (struct m0_rpc_packet *p, struct m0_rpc_item *item, int rc)
 
static void item_sent (struct m0_rpc_item *item)
 
 M0_BOB_DEFINE (static, &rpc_buffer_bob_type, rpc_buffer)
 
static int rpc_buffer_init (struct rpc_buffer *rpcbuf, struct m0_rpc_packet *p)
 
static int rpc_buffer_submit (struct rpc_buffer *rpcbuf)
 
static void rpc_buffer_fini (struct rpc_buffer *rpcbuf)
 
static void buf_send_cb (const struct m0_net_buffer_event *ev)
 
static struct m0_rpc_machinerpc_buffer__rmachine (const struct rpc_buffer *rpcbuf)
 

Variables

const struct m0_rpc_frm_ops m0_rpc_frm_default_ops
 
static const struct m0_bob_type rpc_buffer_bob_type
 
static const struct m0_net_buffer_callbacks rpc_buf_send_cb
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_RPC

Definition at line 23 of file frmops.c.