Motr  M0
m0_timer Struct Reference

#include <timer.h>

Collaboration diagram for m0_timer:
Collaboration graph

Data Fields

enum m0_timer_type t_type
 
m0_timer_callback_t t_callback
 
unsigned long t_data
 
m0_time_t t_expire
 
enum m0_timer_state t_state
 
struct timer_list t_timer
 
struct m0_semaphore t_cb_sync_sem
 
struct m0_thread t_thread
 
struct m0_semaphore t_sleep_sem
 
bool t_thread_stop
 
timer_t t_ptimer
 
pid_t t_tid
 

Detailed Description

Definition at line 39 of file timer.h.

Field Documentation

◆ t_callback

m0_timer_callback_t t_callback

Timer triggers this callback.

Definition at line 43 of file timer.h.

◆ t_cb_sync_sem

struct m0_semaphore t_cb_sync_sem

Semaphore for m0_timer_stop() and user callback synchronisation.

Definition at line 52 of file timer.h.

◆ t_data

unsigned long t_data

User data. It is passed to m0_timer::t_callback().

Definition at line 45 of file timer.h.

◆ t_expire

m0_time_t t_expire

Expire time in future of this timer.

Definition at line 47 of file timer.h.

◆ t_ptimer

timer_t t_ptimer

POSIX timer ID, returned by timer_create().

Definition at line 62 of file timer.h.

◆ t_sleep_sem

struct m0_semaphore t_sleep_sem

Soft timer working thread sleeping semaphore.

Definition at line 57 of file timer.h.

◆ t_state

enum m0_timer_state t_state

Timer state. Used in state changes checking.

Definition at line 49 of file timer.h.

◆ t_thread

struct m0_thread t_thread

Soft timer working thread.

Definition at line 55 of file timer.h.

◆ t_thread_stop

bool t_thread_stop

Thread is stopped by m0_timer_fini().

Definition at line 59 of file timer.h.

◆ t_tid

pid_t t_tid

Target thread ID for hard timer callback. If it is 0 then signal will be sent to the process but not to any specific thread.

Definition at line 68 of file timer.h.

◆ t_timer

struct timer_list t_timer

Kernel timer.

Definition at line 52 of file timer.h.

◆ t_type

enum m0_timer_type t_type

Timer type: M0_TIMER_SOFT or M0_TIMER_HARD.

Definition at line 41 of file timer.h.


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