raw read/write support from torek: add strategy to cdevsw, B_RAW flag
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 15 May 1988 02:25:49 +0000 (18:25 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Sun, 15 May 1988 02:25:49 +0000 (18:25 -0800)
SCCS-vsn: sys/sys/conf.h 7.3
SCCS-vsn: sys/sys/buf.h 7.6

usr/src/sys/sys/buf.h
usr/src/sys/sys/conf.h

index 08faac3..df0e729 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)buf.h       7.5 (Berkeley) %G%
+ *     @(#)buf.h       7.6 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -140,6 +140,7 @@ unsigned minphys();
 #define        B_HEAD          0x040000        /* a buffer header, not a buffer */
 #define        B_BAD           0x100000        /* bad block revectoring in progress */
 #define        B_CALL          0x200000        /* call b_iodone from iodone */
 #define        B_HEAD          0x040000        /* a buffer header, not a buffer */
 #define        B_BAD           0x100000        /* bad block revectoring in progress */
 #define        B_CALL          0x200000        /* call b_iodone from iodone */
+#define        B_RAW           0x400000        /* set by physio for raw transfers */
 
 /*
  * Insq/Remq for the buffer hash lists.
 
 /*
  * Insq/Remq for the buffer hash lists.
index d41cbc1..28b006e 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)conf.h      7.2 (Berkeley) %G%
+ *     @(#)conf.h      7.3 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -45,6 +45,7 @@ struct cdevsw
        struct tty *d_ttys;
        int     (*d_select)();
        int     (*d_mmap)();
        struct tty *d_ttys;
        int     (*d_select)();
        int     (*d_mmap)();
+       int     (*d_strategy)();
 };
 #ifdef KERNEL
 struct cdevsw cdevsw[];
 };
 #ifdef KERNEL
 struct cdevsw cdevsw[];