OSDN Git Service

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)
commit819671ff849b07b9831b91de879ddc5da4b333d4
tree0d2e9bb2765af669be7e29f00fe48b30261cdbc3
parent0c8efd610b58cb23cefdfa12015799079aef94ae
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