Skip to content

Commit

Permalink
docs: fix typo in Documentation/kernel-hacking/locking.rst
Browse files Browse the repository at this point in the history
Change copy_from_user*( to copy_from_user() .

Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
Link: https://lore.kernel.org/r/20220124081447.34066-1-itazur@amazon.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Takahiro Itazuri authored and Jonathan Corbet committed Jan 27, 2022
1 parent 941518d commit 10855b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/kernel-hacking/locking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ Pete Zaitcev gives the following summary:

- If you are in a process context (any syscall) and want to lock other
process out, use a mutex. You can take a mutex and sleep
(``copy_from_user*(`` or ``kmalloc(x,GFP_KERNEL)``).
(``copy_from_user()`` or ``kmalloc(x,GFP_KERNEL)``).

- Otherwise (== data can be touched in an interrupt), use
spin_lock_irqsave() and
Expand Down

0 comments on commit 10855b4

Please sign in to comment.