3 * include/linux/vroot.h
5 * written by Herbert Pötzl, 9/11/2002
6 * ported to 2.6 by Herbert Pötzl, 30/12/2004
8 * Copyright (C) 2002-2005 by Herbert Pötzl.
9 * Redistribution of this file is permitted under the
10 * GNU General Public License.
13 #ifndef _LINUX_VROOT_H
14 #define _LINUX_VROOT_H
19 /* Possible states of device */
29 struct semaphore vr_ctl_mutex;
30 struct block_device *vr_device;
35 typedef struct block_device *(vroot_grb_func)(struct block_device *);
37 extern int register_vroot_grb(vroot_grb_func *);
38 extern int unregister_vroot_grb(vroot_grb_func *);
40 #endif /* __KERNEL__ */
42 #define MAX_VROOT_DEFAULT 8
45 * IOCTL commands --- we will commandeer 0x56 ('V')
48 #define VROOT_SET_DEV 0x5600
49 #define VROOT_CLR_DEV 0x5601
51 #endif /* _LINUX_VROOT_H */