]> git.baikalelectronics.ru Git - kernel.git/commit
syscalls: define and explain goal to not call syscalls in the kernel
authorDominik Brodowski <linux@dominikbrodowski.net>
Sun, 11 Mar 2018 10:34:25 +0000 (11:34 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sun, 25 Mar 2018 16:08:51 +0000 (18:08 +0200)
commit50d313e92f91bfeaa3c3c32c84261762dc6b37b3
tree0d2e9bb2765af669be7e29f00fe48b30261cdbc3
parentecde61851e06174c96d1d1595e3819aa913a7ac6
syscalls: define and explain goal to not call syscalls in the kernel

The syscall entry points to the kernel defined by SYSCALL_DEFINEx()
and COMPAT_SYSCALL_DEFINEx() should only be called from userspace
through kernel entry points, but not from the kernel itself. This
will allow cleanups and optimizations to the entry paths *and* to
the parts of the kernel code which currently need to pretend to be
userspace in order to make use of syscalls.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Documentation/process/adding-syscalls.rst
include/linux/syscalls.h