Skip to main content

vlib_main_t

Struct vlib_main_t 

Source
#[repr(C, align(64))]
pub struct vlib_main_t {
Show 76 fields pub cacheline0: __IncompleteArrayField<u8_>, pub clib_time: clib_time_t, pub time_offset: f64_, pub time_last_barrier_release: f64_, pub cpu_time_last_node_dispatch: u64_, pub cpu_time_main_loop_start: u64_, pub main_loop_count: u32_, pub main_loop_vectors_processed: u32_, pub main_loop_nodes_processed: u32_, pub internal_node_vectors: u64_, pub internal_node_calls: u64_, pub internal_node_vectors_last_clear: u64_, pub internal_node_calls_last_clear: u64_, pub internal_node_last_vectors_per_main_loop: u32_, pub vlib_node_runtime_perf_callbacks: vlib_node_runtime_perf_callback_set_t, pub dispatch_wrapper_fn: vlib_node_function_t, pub main_loop_exit_set: u32_, pub main_loop_exit_now: u32_, pub main_loop_exit_status: c_int, pub __bindgen_padding_0: [u64; 0], pub main_loop_exit: clib_longjmp_t, pub main_loop_error: *mut clib_error_t, pub buffer_main: *mut vlib_buffer_main_t, pub physmem_main: vlib_physmem_main_t, pub node_main: vlib_node_main_t, pub trace_main: vlib_trace_main_t, pub error_main: vlib_error_main_t, pub os_punt_frame: Option<unsafe extern "C" fn(vm: *mut vlib_main_t, node: *mut vlib_node_runtime_t, frame: *mut vlib_frame_t)>, pub mc_stream_index: u32_, pub worker_init_functions_called: *mut uword, pub procs_waiting_for_mc_stream_join: *mut vlib_one_time_waiting_process_t, pub elog_trace_api_messages: c_int, pub elog_trace_cli_commands: c_int, pub elog_trace_graph_dispatch: c_int, pub elog_trace_graph_circuit: c_int, pub elog_trace_graph_circuit_node_index: u32_, pub node_call_elog_event_types: *mut elog_event_type_t, pub node_return_elog_event_types: *mut elog_event_type_t, pub error_elog_event_types: *mut elog_event_type_t, pub random_seed: uword, pub random_buffer: clib_random_buffer_t, pub thread_index: clib_thread_index_t, pub numa_node: u32_, pub epoll_fd: c_int, pub wakeup_fd: c_int, pub n_epoll_fds: c_int, pub file_poll_skip_loops: u32_, pub epoll_files_ready: u64_, pub epoll_waits: u64_, pub wakeup_pending: u8_, pub thread_sleeps: u8_, pub queue_signal_pending: u32_, pub api_queue_nonempty: u32_, pub queue_signal_callback: Option<unsafe extern "C" fn(arg1: *mut vlib_main_t)>, pub worker_thread_main_loop_callbacks: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_)>, pub worker_thread_main_loop_callback_tmp: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_)>, pub worker_thread_main_loop_callback_lock: clib_spinlock_t, pub parked_at_barrier: c_int, pub loops_this_reporting_interval: u64_, pub loop_interval_end: f64_, pub loop_interval_start: f64_, pub loops_per_second: f64_, pub seconds_per_loop: f64_, pub damping_constant: f64_, pub barrier_epoch: f64_, pub barrier_no_close_before: f64_, pub barrier_perf_callbacks: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_, leave: c_int)>, pub barrier_perf_callbacks_tmp: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_, leave: c_int)>, pub check_frame_queues: uword, pub pending_rpc_requests: *mut uword, pub processing_rpc_requests: *mut uword, pub pending_rpc_lock: clib_spinlock_t, pub buffer_alloc_success_seed: u32_, pub buffer_alloc_success_rate: f64_, pub timing_wheel: *mut c_void, pub n_tw_timers: u32_,
}

Fields§

§cacheline0: __IncompleteArrayField<u8_>§clib_time: clib_time_t§time_offset: f64_§time_last_barrier_release: f64_§cpu_time_last_node_dispatch: u64_§cpu_time_main_loop_start: u64_§main_loop_count: u32_§main_loop_vectors_processed: u32_§main_loop_nodes_processed: u32_§internal_node_vectors: u64_§internal_node_calls: u64_§internal_node_vectors_last_clear: u64_§internal_node_calls_last_clear: u64_§internal_node_last_vectors_per_main_loop: u32_§vlib_node_runtime_perf_callbacks: vlib_node_runtime_perf_callback_set_t§dispatch_wrapper_fn: vlib_node_function_t§main_loop_exit_set: u32_§main_loop_exit_now: u32_§main_loop_exit_status: c_int§__bindgen_padding_0: [u64; 0]§main_loop_exit: clib_longjmp_t§main_loop_error: *mut clib_error_t§buffer_main: *mut vlib_buffer_main_t§physmem_main: vlib_physmem_main_t§node_main: vlib_node_main_t§trace_main: vlib_trace_main_t§error_main: vlib_error_main_t§os_punt_frame: Option<unsafe extern "C" fn(vm: *mut vlib_main_t, node: *mut vlib_node_runtime_t, frame: *mut vlib_frame_t)>§mc_stream_index: u32_§worker_init_functions_called: *mut uword§procs_waiting_for_mc_stream_join: *mut vlib_one_time_waiting_process_t§elog_trace_api_messages: c_int§elog_trace_cli_commands: c_int§elog_trace_graph_dispatch: c_int§elog_trace_graph_circuit: c_int§elog_trace_graph_circuit_node_index: u32_§node_call_elog_event_types: *mut elog_event_type_t§node_return_elog_event_types: *mut elog_event_type_t§error_elog_event_types: *mut elog_event_type_t§random_seed: uword§random_buffer: clib_random_buffer_t§thread_index: clib_thread_index_t§numa_node: u32_§epoll_fd: c_int§wakeup_fd: c_int§n_epoll_fds: c_int§file_poll_skip_loops: u32_§epoll_files_ready: u64_§epoll_waits: u64_§wakeup_pending: u8_§thread_sleeps: u8_§queue_signal_pending: u32_§api_queue_nonempty: u32_§queue_signal_callback: Option<unsafe extern "C" fn(arg1: *mut vlib_main_t)>§worker_thread_main_loop_callbacks: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_)>§worker_thread_main_loop_callback_tmp: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_)>§worker_thread_main_loop_callback_lock: clib_spinlock_t§parked_at_barrier: c_int§loops_this_reporting_interval: u64_§loop_interval_end: f64_§loop_interval_start: f64_§loops_per_second: f64_§seconds_per_loop: f64_§damping_constant: f64_§barrier_epoch: f64_§barrier_no_close_before: f64_§barrier_perf_callbacks: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_, leave: c_int)>§barrier_perf_callbacks_tmp: *mut Option<unsafe extern "C" fn(arg1: *mut vlib_main_t, t: u64_, leave: c_int)>§check_frame_queues: uword§pending_rpc_requests: *mut uword§processing_rpc_requests: *mut uword§pending_rpc_lock: clib_spinlock_t§buffer_alloc_success_seed: u32_§buffer_alloc_success_rate: f64_§timing_wheel: *mut c_void§n_tw_timers: u32_

Trait Implementations§

Source§

impl Default for vlib_main_t

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.