[PATCH -perfbook 1/2] defer/rcuusage: Put path name of singleton get/set code snippets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As Listing 9.20 shows set_config() as a whole, replace the reference
to the line-count range with that to the Listing itself.
Also adjust conjugation of verbs.

Fixes: 787eb4586767 ("defer/rcuusage: Add RCU space-time code and diagram")
Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
Hi Paul,

These patches are trivial fixes independent of the planned
colon-related changes.

        Thanks, Akira
--
 defer/rcuusage.tex | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/defer/rcuusage.tex b/defer/rcuusage.tex
index 8e705ce4..b3d79d13 100644
--- a/defer/rcuusage.tex
+++ b/defer/rcuusage.tex
@@ -798,7 +798,7 @@ by the RCU singleton data structure illustrated in
 \cref{fig:defer:Insertion With Concurrent Readers,fig:defer:Deletion With Concurrent Readers}.
 This structure is defined on \clnrefrange{myconfig.b}{myconfig.e} of
 \cref{lst:defer:Singleton Get}, and contains two integer fields,
-\co{->a} and \co{->b}.
+\co{->a} and \co{->b} (\path{singleton.c}).
 The current instance of this structure is referenced by the \co{curconfig}
 pointer defined on \clnref{myconfig.e}.
 \end{fcvref}
@@ -828,9 +828,9 @@ with each other.
 \end{fcvref}
 
 \begin{fcvref}[ln:defer:singleton:set]
-The structure is updated by the \co{set_config()} function shown on
-\clnrefrange{set_config.b}{set_config.e}.
-\Clnrefrange{allocinit.b}{allocinit.e} allocates and initializes a
+The structure is updated by the \co{set_config()} function shown in
+\cref{lst:defer:Singleton Set}.
+\Clnrefrange{allocinit.b}{allocinit.e} allocate and initialize a
 new \co{myconfig} structure.
 \Clnref{xchg} atomically exchanges a pointer to this new structure
 with the pointer to the old structure in \co{curconfig}, while also
-- 
2.17.1




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux