Skip to content

Commit dc89fca

Browse files
committed
locking.rst: Update some ReST markups
Correct a few minor issues with ReST notation used on this file (produced by an automatic tool). Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent 475c5ef commit dc89fca

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎Documentation/kernel-hacking/locking.rst‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ Locking in the Linux Kernel
9393
===========================
9494

9595
If I could give you one piece of advice: never sleep with anyone crazier
96-
than yourself. But if I had to give you advice on locking: *keep it
97-
simple*.
96+
than yourself. But if I had to give you advice on locking: **keep it
97+
simple**.
9898

9999
Be reluctant to introduce new locks.
100100

101101
Strangely enough, this last one is the exact reverse of my advice when
102-
you *have* slept with someone crazier than yourself. And you should
102+
you **have** slept with someone crazier than yourself. And you should
103103
think about getting a big dog.
104104

105105
Two Main Types of Kernel Locks: Spinlocks and Mutexes
@@ -311,7 +311,7 @@ Pete Zaitcev gives the following summary:
311311
Table of Minimum Requirements
312312
-----------------------------
313313

314-
The following table lists the *minimum* locking requirements between
314+
The following table lists the **minimum** locking requirements between
315315
various contexts. In some cases, the same context can only be running on
316316
one CPU at a time, so no locking is required for that context (eg. a
317317
particular thread can only run on one CPU at a time, but if it needs
@@ -703,7 +703,7 @@ reference count, but they are more complicated.
703703
Using Atomic Operations For The Reference Count
704704
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
705705

706-
In practice, ``atomic_t`` would usually be used for refcnt. There are a
706+
In practice, :c:type:`atomic_t` would usually be used for refcnt. There are a
707707
number of atomic operations defined in ``include/asm/atomic.h``: these
708708
are guaranteed to be seen atomically from all CPUs in the system, so no
709709
lock is required. In this case, it is simpler than using spinlocks,
@@ -1321,7 +1321,7 @@ from user context, and can sleep.
13211321

13221322
- :c:func:`put_user()`
13231323

1324-
- ``kmalloc(GFP_KERNEL)``
1324+
- :c:func:`kmalloc(GFP_KERNEL) <kmalloc>`
13251325

13261326
- :c:func:`mutex_lock_interruptible()` and
13271327
:c:func:`mutex_lock()`
@@ -1431,10 +1431,10 @@ tasklet
14311431
timer
14321432
A dynamically-registrable software interrupt, which is run at (or close
14331433
to) a given time. When running, it is just like a tasklet (in fact, they
1434-
are called from the TIMER_SOFTIRQ).
1434+
are called from the ``TIMER_SOFTIRQ``).
14351435

14361436
UP
1437-
Uni-Processor: Non-SMP. (CONFIG_SMP=n).
1437+
Uni-Processor: Non-SMP. (``CONFIG_SMP=n``).
14381438

14391439
User Context
14401440
The kernel executing on behalf of a particular process (ie. a system

0 commit comments

Comments
 (0)