Motr  M0
nlx_xo_interceptable_subs Struct Reference
Collaboration diagram for nlx_xo_interceptable_subs:
Collaboration graph

Data Fields

int(* _nlx_core_buf_event_wait )(struct nlx_core_domain *lcdom, struct nlx_core_transfer_mc *lctm, m0_time_t timeout)
 
int(* _nlx_ep_create )(struct m0_net_end_point **epp, struct m0_net_transfer_mc *tm, const struct nlx_core_ep_addr *cepa)
 
m0_time_t(* _nlx_tm_get_buffer_timeout_tick )(const struct m0_net_transfer_mc *tm)
 
int(* _nlx_tm_timeout_buffers )(struct m0_net_transfer_mc *tm, m0_time_t now)
 

Detailed Description

Unit test intercept support. Conventions to use:

  • All such subs must be declared in headers.
  • A macro named for the subroutine, but with the "NLX" portion of the prefix in capitals, should be used to call the subroutine via this intercept vector.
  • UT should restore the vector upon completion. It is not declared const so that the UTs can modify it.

Definition at line 71 of file lnet_xo.c.

Field Documentation

◆ _nlx_core_buf_event_wait

int(* _nlx_core_buf_event_wait) (struct nlx_core_domain *lcdom, struct nlx_core_transfer_mc *lctm, m0_time_t timeout)

Definition at line 72 of file lnet_xo.c.

◆ _nlx_ep_create

int(* _nlx_ep_create) (struct m0_net_end_point **epp, struct m0_net_transfer_mc *tm, const struct nlx_core_ep_addr *cepa)

Definition at line 75 of file lnet_xo.c.

◆ _nlx_tm_get_buffer_timeout_tick

m0_time_t(* _nlx_tm_get_buffer_timeout_tick) (const struct m0_net_transfer_mc *tm)

Definition at line 78 of file lnet_xo.c.

◆ _nlx_tm_timeout_buffers

int(* _nlx_tm_timeout_buffers) (struct m0_net_transfer_mc *tm, m0_time_t now)

Definition at line 80 of file lnet_xo.c.


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