1 #ifndef __LINUX_OBD_PSDEV_H
2 #define __LINUX_OBD_PSDEV_H
4 #define OBD_PSDEV_MAJOR 120
6 #define ISLENTO (current->pid == psdev_vcomm.vc_pid)
8 /* communication pending & processing queues */
11 struct wait_queue *vc_waitq; /* Lento wait queue */
12 struct list_head vc_pending;
13 struct list_head vc_processing;
15 int vc_pid; /* Lento's pid */
18 extern void obd_psdev_detach(int unit);
19 extern int init_obd_psdev(void);
20 struct vcomm psdev_vcomm;
22 /* messages between presto filesystem in kernel and Venus */
23 extern int presto_hard;
24 extern unsigned long presto_timeout;
31 struct list_head rq_chain;
34 u_short rq_read_size; /* Size is at most 5000 bytes */
36 u_short rq_opcode; /* copied from data to save lookup */
38 struct wait_queue *rq_sleep; /* process' wait queue */
39 unsigned long rq_posttime;
42 #endif /* __LINUX_OBD_PSDEV_H */