Skip to content

Commit f8b2164

Browse files
committed
virtio-msg: rename msg_uid to token and msg_op back to msg_id
Rename these as agreed in the meeting on Oct 17. Signed-off-by: Bill Mills <bill.mills@linaro.org>
1 parent 9320bbe commit f8b2164

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

transport-msg.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ \subsubsection{Common Message Format}
294294
\begin{lstlisting}
295295
struct virtio_msg_header {
296296
uint8_t type; /* request/response + bus/transport */
297-
uint8_t msg_op; /* message operation code */
297+
uint8_t msg_id; /* message id */
298298
uint16_t dev_num; /* device number (0 for bus messages) */
299-
uint16_t msg_uid; /* correlation identifier (0 for events) */
299+
uint16_t token; /* correlation identifier (0 for events) */
300300
uint16_t msg_size; /* total size: header (8) + payload */
301301
uint8_t payload[];
302302
};
@@ -310,16 +310,16 @@ \subsubsection{Common Message Format}
310310
\item Bit[1]: 0=Transport Message, 1=Bus Message.
311311
\item Bits[2..7]: \textbf{MUST} be zero; receivers \textbf{MUST} ignore.
312312
\end{itemize}
313-
\item \field{msg_op}: Operation code identifying the message definition. Ranges
313+
\item \field{msg_id}: Message ID identifying the message definition. Ranges
314314
are defined in
315315
\ref{sec:Virtio Transport Options / Virtio Over Messages / Transport Messages}
316316
and
317317
\ref{sec:Virtio Transport Options / Virtio Over Messages / Bus Messages}.
318318
\item \field{dev_num}: For Transport Messages, the target device number; for
319319
Bus Messages \textbf{MUST} be zero.
320-
\item \field{msg_uid}: Non-zero for requests that expect a response; zero
320+
\item \field{token}: Non-zero for requests (which expect a response); zero
321321
\textbf{MUST} be used only for event (one-way) messages. Responses
322-
\textbf{MUST} echo the request's \field{msg_uid}.
322+
\textbf{MUST} echo the request's \field{token}.
323323
\item \field{msg_size}: Total size in bytes of the complete message (header +
324324
payload). \textbf{MUST} be \(\ge 8\) and \textbf{MUST NOT} exceed the
325325
bus's maximum message size.

0 commit comments

Comments
 (0)