diff options
Diffstat (limited to 'content.tex')
-rw-r--r-- | content.tex | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/content.tex b/content.tex index c9dd28d..0bdb861 100644 --- a/content.tex +++ b/content.tex @@ -3697,16 +3697,12 @@ struct virtio_blk_req { \end{lstlisting} The type of the request is either a read (VIRTIO_BLK_T_IN), a write -(VIRTIO_BLK_T_OUT), or a flush (VIRTIO_BLK_T_FLUSH or -VIRTIO_BLK_T_FLUSH_OUT\footnote{The FLUSH and FLUSH_OUT types are equivalent, the device does not -distinguish between them -}). +(VIRTIO_BLK_T_OUT), or a flush (VIRTIO_BLK_T_FLUSH). \begin{lstlisting} #define VIRTIO_BLK_T_IN 0 #define VIRTIO_BLK_T_OUT 1 #define VIRTIO_BLK_T_FLUSH 4 -#define VIRTIO_BLK_T_FLUSH_OUT 5 \end{lstlisting} The \field{sector} number indicates the offset (multiplied by 512) where @@ -3753,6 +3749,13 @@ is a hint about the relative priorities of requests to the device: higher numbers indicate more important requests. \begin{lstlisting} +#define VIRTIO_BLK_T_FLUSH_OUT 5 +\end{lstlisting} + +The command VIRTIO_BLK_T_FLUSH_OUT was a synonym for VIRTIO_BLK_T_FLUSH; +a driver MUST treat it as a VIRTIO_BLK_T_FLUSH command. + +\begin{lstlisting} #define VIRTIO_BLK_T_BARRIER 0x80000000 \end{lstlisting} |