patch-2.1.120 linux/include/linux/nbd.h
Next file: linux/include/linux/netdevice.h
Previous file: linux/include/linux/ipv6_route.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Fri Aug 28 10:38:32 1998
- Orig file:
v2.1.119/linux/include/linux/nbd.h
- Orig date:
Tue Aug 18 22:02:07 1998
diff -u --recursive --new-file v2.1.119/linux/include/linux/nbd.h linux/include/linux/nbd.h
@@ -12,6 +12,7 @@
#ifdef MAJOR_NR
#include <linux/locks.h>
+#include <asm/semaphore.h>
#define LOCAL_END_REQUEST
@@ -42,11 +43,13 @@
int harderror; /* Code of hard error */
#define NBD_READ_ONLY 0x0001
#define NBD_WRITE_NOCHK 0x0002
+#define NBD_INITIALISED 0x0004
struct socket * sock;
struct file * file; /* If == NULL, device is not ready, yet */
int magic; /* FIXME: not if debugging is off */
struct request *head; /* Requests are added here... */
struct request *tail;
+ struct semaphore queue_lock;
};
/* This now IS in some kind of include file... */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov