Whamcloud - gitweb
LU-6142 selftest: SPDX for lnet/selftest/
[fs/lustre-release.git] / lnet / selftest / timer.h
1 // SPDX-License-Identifier: GPL-2.0
2
3 /*
4  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
5  * Use is subject to license terms.
6  */
7
8 /*
9  * This file is part of Lustre, http://www.lustre.org/
10  *
11  * Author: Isaac Huang <isaac@clusterfs.com>
12  */
13
14 #ifndef __SELFTEST_TIMER_H__
15 #define __SELFTEST_TIMER_H__
16
17 struct stt_timer {
18         struct list_head        stt_list;
19         time64_t                stt_expires;
20         void                    (*stt_func)(void *);
21         void                    *stt_data;
22 };
23
24 void stt_add_timer(struct stt_timer *timer);
25 int stt_del_timer(struct stt_timer *timer);
26 int stt_startup(void);
27 void stt_shutdown(void);
28
29 #endif /* __SELFTEST_TIMER_H__ */