kernel - Move vm_page spin locks from pool to vm_page structure
[dragonfly.git] / sys / sys / iosched.h
blob7e34ed974af1002b52e99c391d1f620cfb3fdb99
1 /*
2 * SYS/IOSCHED.H
4 * I/O Scheduler
5 *
6 * $DragonFly: src/sys/sys/iosched.h,v 1.1 2008/06/28 17:59:47 dillon Exp $
7 */
9 #ifndef _SYS_IOSCHED_H_
10 #define _SYS_IOSCHED_H_
12 #if defined(_KERNEL) || defined(_KERNEL_STRUCTURES)
14 #ifndef _SYS_TYPES_H_
15 #include <sys/types.h>
16 #endif
17 #ifndef _SYS_QUEUE_H_
18 #include <sys/queue.h>
19 #endif
20 #ifndef _SYS_SYSTIMER_H_
21 #include <sys/systimer.h>
22 #endif
24 #endif /* _KERNEL || _KERNEL_STRUCTURES */
26 struct iosched_data {
27 size_t iorbytes;
28 size_t iowbytes;
29 int lastticks; /* decay last recorded */
32 #ifdef _KERNEL
34 struct thread;
35 void bwillwrite(int bytes);
36 void bwillread(int bytes);
37 void bwillinode(int count);
38 void biosched_done(struct thread *td);
40 #endif
42 #endif