Motr  M0
mem_xprt_pvt.h File Reference
Include dependency graph for mem_xprt_pvt.h:

Go to the source code of this file.

Data Structures

struct  mem_desc
 

Macros

#define __MOTR_NET_BULK_MEM_XPRT_PVT_H__
 

Enumerations

enum  { M0_NET_BULK_MEM_MAX_SEGMENT_SIZE = (1 << 18), M0_NET_BULK_MEM_MAX_BUFFER_SEGMENTS = 16, M0_NET_BULK_MEM_MAX_BUFFER_SIZE = (1 << 22) }
 

Functions

static bool mem_dom_invariant (const struct m0_net_domain *dom)
 
static bool mem_ep_invariant (const struct m0_net_end_point *ep)
 
static bool mem_buffer_invariant (const struct m0_net_buffer *nb)
 
static bool mem_tm_invariant (const struct m0_net_transfer_mc *tm)
 
static int mem_ep_create (struct m0_net_end_point **epp, struct m0_net_transfer_mc *tm, const struct sockaddr_in *sa, uint32_t id)
 
static bool mem_eps_are_equal (const struct m0_net_end_point *ep1, const struct m0_net_end_point *ep2)
 
static bool mem_ep_equals_addr (const struct m0_net_end_point *ep, const struct sockaddr_in *sa)
 
static int mem_desc_create (struct m0_net_buf_desc *desc, struct m0_net_transfer_mc *tm, enum m0_net_queue_type qt, m0_bcount_t buflen, int64_t buf_id)
 
static int mem_desc_decode (struct m0_net_buf_desc *desc, struct mem_desc **p_md)
 
static bool mem_desc_equal (struct m0_net_buf_desc *d1, struct m0_net_buf_desc *d2)
 
static m0_bcount_t mem_buffer_length (const struct m0_net_buffer *nb)
 
static bool mem_buffer_in_bounds (const struct m0_net_buffer *nb)
 
static int mem_copy_buffer (struct m0_net_buffer *dest_nb, struct m0_net_buffer *src_nb, m0_bcount_t num_bytes)
 
static void mem_wi_add (struct m0_net_bulk_mem_work_item *wi, struct m0_net_bulk_mem_tm_pvt *tp)
 
static void mem_post_error (struct m0_net_transfer_mc *tm, int status)
 
static void mem_wi_post_buffer_event (struct m0_net_bulk_mem_work_item *wi)
 
static int mem_bmo_ep_create (struct m0_net_end_point **epp, struct m0_net_transfer_mc *tm, const struct sockaddr_in *sa, uint32_t id)
 
static bool mem_bmo_buffer_in_bounds (const struct m0_net_buffer *nb)
 
static int mem_bmo_desc_create (struct m0_net_buf_desc *desc, struct m0_net_transfer_mc *tm, enum m0_net_queue_type qt, m0_bcount_t buflen, int64_t buf_id)
 

Macro Definition Documentation

◆ __MOTR_NET_BULK_MEM_XPRT_PVT_H__

#define __MOTR_NET_BULK_MEM_XPRT_PVT_H__

Definition at line 26 of file mem_xprt_pvt.h.

Function Documentation

◆ mem_desc_create()

static int mem_desc_create ( struct m0_net_buf_desc desc,
struct m0_net_transfer_mc tm,
enum m0_net_queue_type  qt,
m0_bcount_t  buflen,
int64_t  buf_id 
)
static

◆ mem_desc_decode()

static int mem_desc_decode ( struct m0_net_buf_desc desc,
struct mem_desc **  p_md 
)
static

◆ mem_desc_equal()

static bool mem_desc_equal ( struct m0_net_buf_desc d1,
struct m0_net_buf_desc d2 
)
static

◆ mem_ep_create()

static int mem_ep_create ( struct m0_net_end_point **  epp,
struct m0_net_transfer_mc tm,
const struct sockaddr_in *  sa,
uint32_t  id 
)
static

◆ mem_ep_equals_addr()

static bool mem_ep_equals_addr ( const struct m0_net_end_point ep,
const struct sockaddr_in *  sa 
)
static

◆ mem_eps_are_equal()

static bool mem_eps_are_equal ( const struct m0_net_end_point ep1,
const struct m0_net_end_point ep2 
)
static