aboutsummaryrefslogtreecommitdiffstats
path: root/fs/afs/kafstimod.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs/kafstimod.h')
-rw-r--r--fs/afs/kafstimod.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/fs/afs/kafstimod.h b/fs/afs/kafstimod.h
index e312f1a61a7f..0d39becbbe02 100644
--- a/fs/afs/kafstimod.h
+++ b/fs/afs/kafstimod.h
@@ -1,4 +1,4 @@
1/* kafstimod.h: AFS timeout daemon 1/* AFS timeout daemon
2 * 2 *
3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved. 3 * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com) 4 * Written by David Howells (dhowells@redhat.com)
@@ -9,8 +9,8 @@
9 * 2 of the License, or (at your option) any later version. 9 * 2 of the License, or (at your option) any later version.
10 */ 10 */
11 11
12#ifndef _LINUX_AFS_KAFSTIMOD_H 12#ifndef AFS_KAFSTIMOD_H
13#define _LINUX_AFS_KAFSTIMOD_H 13#define AFS_KAFSTIMOD_H
14 14
15#include "types.h" 15#include "types.h"
16 16
@@ -18,15 +18,13 @@ struct afs_timer;
18 18
19struct afs_timer_ops { 19struct afs_timer_ops {
20 /* called when the front of the timer queue has timed out */ 20 /* called when the front of the timer queue has timed out */
21 void (*timed_out)(struct afs_timer *timer); 21 void (*timed_out)(struct afs_timer *);
22}; 22};
23 23
24/*****************************************************************************/
25/* 24/*
26 * AFS timer/timeout record 25 * AFS timer/timeout record
27 */ 26 */
28struct afs_timer 27struct afs_timer {
29{
30 struct list_head link; /* link in timer queue */ 28 struct list_head link; /* link in timer queue */
31 unsigned long timo_jif; /* timeout time */ 29 unsigned long timo_jif; /* timeout time */
32 const struct afs_timer_ops *ops; /* timeout expiry function */ 30 const struct afs_timer_ops *ops; /* timeout expiry function */
@@ -41,9 +39,7 @@ static inline void afs_timer_init(struct afs_timer *timer,
41 39
42extern int afs_kafstimod_start(void); 40extern int afs_kafstimod_start(void);
43extern void afs_kafstimod_stop(void); 41extern void afs_kafstimod_stop(void);
42extern void afs_kafstimod_add_timer(struct afs_timer *, unsigned long);
43extern int afs_kafstimod_del_timer(struct afs_timer *);
44 44
45extern void afs_kafstimod_add_timer(struct afs_timer *timer, 45#endif /* AFS_KAFSTIMOD_H */
46 unsigned long timeout);
47extern int afs_kafstimod_del_timer(struct afs_timer *timer);
48
49#endif /* _LINUX_AFS_KAFSTIMOD_H */