Motr  M0
m0_net_end_point Struct Reference

#include <net.h>

Collaboration diagram for m0_net_end_point:
Collaboration graph

Data Fields

uint64_t nep_magix
 
struct m0_ref nep_ref
 
struct m0_net_transfer_mcnep_tm
 
struct m0_tlink nep_tm_linkage
 
const char * nep_addr
 
void * nep_xprt_pvt
 

Detailed Description

This represents an addressable network end point. Memory for this data structure is managed by the network transport component and is associated with the transfer machine that created the structure.

Multiple entities may reference and use the data structure at the same time, so a reference count is maintained within it to determine when it is safe to release the structure.

Transports should embed this data structure in their private end point structures, and provide the release() method required to free them. The release() method, which is called with the transfer machine mutex locked, should remove the data structure from the transfer machine ntm_end_points list.

Definition at line 487 of file net.h.

Field Documentation

◆ nep_addr

const char* nep_addr

Transport specific printable representation of the end point address.

Definition at line 503 of file net.h.

◆ nep_magix

uint64_t nep_magix

Magic number.

Definition at line 489 of file net.h.

◆ nep_ref

struct m0_ref nep_ref

Keeps track of usage.

Definition at line 491 of file net.h.

◆ nep_tm

struct m0_net_transfer_mc* nep_tm

Pointer to transfer machine.

Definition at line 493 of file net.h.

◆ nep_tm_linkage

struct m0_tlink nep_tm_linkage

Linkage in the transfer machine list, m0_net_transfer_mc::ntm_end_points.

Definition at line 498 of file net.h.

◆ nep_xprt_pvt

void* nep_xprt_pvt

Pointer to transport specific endpoint struct

Definition at line 505 of file net.h.


The documentation for this struct was generated from the following file: