This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / linux / vroot.h
1
2 /*
3  * include/linux/vroot.h
4  *
5  * written by Herbert Pötzl, 9/11/2002
6  * ported to 2.6 by Herbert Pötzl, 30/12/2004
7  *
8  * Copyright (C) 2002-2005 by Herbert Pötzl.
9  * Redistribution of this file is permitted under the
10  * GNU General Public License.
11  */
12
13 #ifndef _LINUX_VROOT_H
14 #define _LINUX_VROOT_H
15
16
17 #ifdef __KERNEL__
18
19 /* Possible states of device */
20 enum {
21         Vr_unbound,
22         Vr_bound,
23 };
24
25 struct vroot_device {
26         int             vr_number;
27         int             vr_refcnt;
28
29         struct semaphore        vr_ctl_mutex;
30         struct block_device    *vr_device;
31         int                     vr_state;
32 };
33
34 #endif /* __KERNEL__ */
35
36 #define MAX_VROOT_DEFAULT       8
37
38 /*
39  * IOCTL commands --- we will commandeer 0x56 ('V')
40  */
41
42 #define VROOT_SET_DEV           0x5600
43 #define VROOT_CLR_DEV           0x5601
44
45 #endif /* _LINUX_VROOT_H */