summaryrefslogtreecommitdiff
path: root/sys/sys/linedisc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/linedisc.h')
-rw-r--r--sys/sys/linedisc.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h
index 9124880d7c5d..2df2b741c2ce 100644
--- a/sys/sys/linedisc.h
+++ b/sys/sys/linedisc.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)conf.h 8.5 (Berkeley) 1/9/95
- * $Id: conf.h,v 1.71 1999/08/13 10:29:31 phk Exp $
+ * $Id: conf.h,v 1.72 1999/08/13 16:29:27 phk Exp $
*/
#ifndef _SYS_CONF_H_
@@ -118,6 +118,15 @@ typedef int l_start_t __P((struct tty *tp));
typedef int l_modem_t __P((struct tty *tp, int flag));
/*
+ * XXX: The dummy argument can be used to do what strategy1() never
+ * did anywhere: Create a per device flag to lock the device during
+ * label/slice surgery, all calls with a dummy == 0 gets stalled on
+ * a queue somewhere, whereas dummy == 1 are let through. Once out
+ * of surgery, reset the flag and restart all the stuff on the stall
+ * queue.
+ */
+#define BUF_STRATEGY(bp, dummy) (*devsw((bp)->b_dev)->d_strategy)(bp)
+/*
* Types for d_type.
*/
#define D_TAPE 1