]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
docs/devel/lockcnt: Include kernel-doc API documentation
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Oct 2024 16:05:55 +0000 (17:05 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2024 14:16:17 +0000 (15:16 +0100)
Pull in the kernel-doc API documentation into the lockcnt docs.
This requires us to fix one rST markup syntax error in the
header file comments.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20240816132212.3602106-8-peter.maydell@linaro.org

docs/devel/lockcnt.rst
include/qemu/lockcnt.h

index 728594bcea31eaed9e35901acf30705b566132be..8b43578f6c76300a210579b4d53652454cd27f73 100644 (file)
@@ -175,7 +175,7 @@ three instructions in the critical path, two assignments and a ``smp_wmb()``.
 ``QemuLockCnt`` API
 -------------------
 
-The ``QemuLockCnt`` API is described in ``include/qemu/lockcnt.h``.
+.. kernel-doc:: include/qemu/lockcnt.h
 
 
 ``QemuLockCnt`` usage
index 2c92ae17c9e8ade0d3ea1baa1cfd5016022d73c8..f4b62a3f70117a767430a7d090717d66d372673d 100644 (file)
@@ -51,7 +51,7 @@ void qemu_lockcnt_destroy(QemuLockCnt *lockcnt);
  * Because this function can wait on the mutex, it must not be
  * called while the lockcnt's mutex is held by the current thread.
  * For the same reason, qemu_lockcnt_inc can also contribute to
- * AB-BA deadlocks.  This is a sample deadlock scenario:
+ * AB-BA deadlocks.  This is a sample deadlock scenario::
  *
  *            thread 1                      thread 2
  *            -------------------------------------------------------