Commit 10855b45 authored by Takahiro Itazuri's avatar Takahiro Itazuri Committed by Jonathan Corbet

docs: fix typo in Documentation/kernel-hacking/locking.rst

Change copy_from_user*( to copy_from_user() .
Signed-off-by: default avatarTakahiro Itazuri <itazur@amazon.com>
Link: https://lore.kernel.org/r/20220124081447.34066-1-itazur@amazon.comSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 941518d6
...@@ -295,7 +295,7 @@ Pete Zaitcev gives the following summary: ...@@ -295,7 +295,7 @@ Pete Zaitcev gives the following summary:
- If you are in a process context (any syscall) and want to lock other - 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 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 - Otherwise (== data can be touched in an interrupt), use
spin_lock_irqsave() and spin_lock_irqsave() and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment