Whamcloud - gitweb
i=liang:
[fs/lustre-release.git] / lnet / selftest / timer.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * Copyright (C) 2001, 2002 Cluster File Systems, Inc.
5  *   Author: Isaac Huang <isaac@clusterfs.com>
6  *
7  */
8 #ifndef __SELFTEST_TIMER_H__
9 #define __SELFTEST_TIMER_H__
10
11 typedef struct {
12         struct list_head  stt_list;
13         cfs_time_t        stt_expires;
14         void            (*stt_func) (void *);
15         void             *stt_data;
16 } stt_timer_t;
17
18 void stt_add_timer (stt_timer_t *timer);
19 int stt_del_timer (stt_timer_t *timer);
20 int stt_startup (void);
21 void stt_shutdown (void);
22
23 #endif /* __SELFTEST_TIMER_H__ */