Motr
M0
|
#include "lib/types.h"
#include "lib/tlist.h"
#include "lib/mutex.h"
#include "lib/user_space/timer.h"
Go to the source code of this file.
Data Structures | |
struct | m0_timer_operations |
Macros | |
#define | __MOTR_LIB_TIMER_H__ |
Typedefs | |
typedef unsigned long(* | m0_timer_callback_t) (unsigned long data) |
Enumerations | |
enum | m0_timer_type { M0_TIMER_SOFT, M0_TIMER_HARD, M0_TIMER_TYPE_NR } |
enum | m0_timer_state { M0_TIMER_UNINIT = 0, M0_TIMER_INITED, M0_TIMER_RUNNING, M0_TIMER_STOPPED, M0_TIMER_STATE_NR } |
Functions | |
M0_INTERNAL int | m0_timer_init (struct m0_timer *timer, enum m0_timer_type type, struct m0_timer_locality *loc, m0_timer_callback_t callback, unsigned long data) |
M0_INTERNAL void | m0_timer_start (struct m0_timer *timer, m0_time_t expire) |
M0_INTERNAL void | m0_timer_stop (struct m0_timer *timer) |
M0_INTERNAL bool | m0_timer_is_started (const struct m0_timer *timer) |
M0_INTERNAL void | m0_timer_fini (struct m0_timer *timer) |
M0_INTERNAL void | m0_timer_callback_execute (struct m0_timer *timer) |
M0_INTERNAL void | m0_timer_locality_init (struct m0_timer_locality *loc) |
M0_INTERNAL void | m0_timer_locality_fini (struct m0_timer_locality *loc) |
M0_INTERNAL int | m0_timer_thread_attach (struct m0_timer_locality *loc) |
M0_INTERNAL void | m0_timer_thread_detach (struct m0_timer_locality *loc) |