Private interfaces used within the Network module.
◆ m0_net__buffer_add()
◆ m0_net__buffer_event_invariant()
Buffer event invariant.
Definition at line 297 of file buf.c.
◆ m0_net__buffer_invariant()
M0_INTERNAL bool m0_net__buffer_invariant |
( |
const struct m0_net_buffer * |
buf | ) |
|
Buffer checks for a registered buffer. Must be called within the domain or transfer machine mutex.
Definition at line 46 of file buf.c.
◆ m0_net__ep_invariant()
Invariant checks for an end point. No mutex necessary. Extra checks if under_tm_mutex set to true.
Definition at line 42 of file ep.c.
◆ m0_net__qtype_is_valid()
Validates the value of buffer queue type.
Definition at line 41 of file buf.c.
◆ m0_net__tm_cancel()
Cancels all buffers posted to the machine queues.
- Precondition
- m0_mutex_is_locked(&tm->ntm_mutex)
Definition at line 145 of file tm.c.
◆ m0_net__tm_ev_type_is_valid()
Validates the TM event type.
Definition at line 49 of file tm.c.
◆ m0_net__tm_event_invariant()
M0_INTERNAL bool m0_net__tm_event_invariant |
( |
const struct m0_net_tm_event * |
ev | ) |
|
TM event invariant.
Definition at line 54 of file tm.c.
◆ m0_net__tm_invariant()
Validates tm state. Must be called within the domain or transfer machine mutex.
Definition at line 67 of file tm.c.
◆ m0_net__tm_post_callback()
◆ m0_net__tm_provision_buf()
◆ m0_net__tm_provision_recv_q()
Internal subroutine to provision the receive queue of a transfer machine from its associated buffer pool.
- Precondition
- m0_mutex_is_not_locked(&tm->ntm_mutex) && tm->ntm_callback_counter > 0
-
m0_net_buffer_pool_is_not_locked(&tm->ntm_recv_pool))
- Postcondition
- Length of receive queue >= tm->ntm_recv_queue_min_length && tm->ntm_recv_queue_deficit == 0 || Length of receive queue + tm->ntm_recv_queue_deficit == tm->ntm_recv_queue_min_length
Definition at line 509 of file tm_provision.c.
◆ m0_net__tm_state_is_valid()
Validates transfer machine state.
Definition at line 44 of file tm.c.
◆ m0_net__tm_stats_get()
Internal sub variant to get TM statistics from within the TM mutex.
- Precondition
- m0_mutex_is_locked(&tm->ntm_mutex)
Definition at line 320 of file tm.c.
◆ m0_net_mutex
Network module global mutex. This mutex is used to serialize domain init and fini. It is defined here so that it can get initialized and fini'd by the general initialization mechanism. Transport that deal with multiple domains can rely on this mutex being held across their xo_dom_init() and xo_dom_fini() methods.
Definition at line 59 of file net.c.