Skip to content

Commit dd58e64

Browse files
andrealmeidJonathan Corbet
authored andcommitted
docs: Make syscalls' helpers naming consistent
The documentation explains the need to create internal syscalls' helpers, and that they should be called `kern_xyzzy()`. However, the comment at include/linux/syscalls.h says that they should be named as `ksys_xyzzy()`, and so are all the helpers declared bellow it. Change the documentation to reflect this. Fixes: 819671f ("syscalls: define and explain goal to not call syscalls in the kernel") Signed-off-by: André Almeida <[email protected]> Reviewed-by: Dominik Brodowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 26606ce commit dd58e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/process/adding-syscalls.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ table, but not from elsewhere in the kernel. If the syscall functionality is
501501
useful to be used within the kernel, needs to be shared between an old and a
502502
new syscall, or needs to be shared between a syscall and its compatibility
503503
variant, it should be implemented by means of a "helper" function (such as
504-
``kern_xyzzy()``). This kernel function may then be called within the
504+
``ksys_xyzzy()``). This kernel function may then be called within the
505505
syscall stub (``sys_xyzzy()``), the compatibility syscall stub
506506
(``compat_sys_xyzzy()``), and/or other kernel code.
507507

0 commit comments

Comments
 (0)