aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/devtmpfs.c
diff options
context:
space:
mode:
authorDominik Brodowski <[email protected]>2018-03-11 10:34:40 +0000
committerDominik Brodowski <[email protected]>2018-04-02 18:15:49 +0000
commitc7248321a3d42ffba78db0dde88d1c49ca1c045f (patch)
treeecd2b86a077f764e200b3c214cd1f851d4e3c6e0 /drivers/base/devtmpfs.c
parentfs: add ksys_umount() helper; remove in-kernel call to sys_umount() (diff)
downloadkernel-c7248321a3d42ffba78db0dde88d1c49ca1c045f.tar.gz
kernel-c7248321a3d42ffba78db0dde88d1c49ca1c045f.zip
fs: add ksys_dup{,3}() helper; remove in-kernel calls to sys_dup{,3}()
Using ksys_dup() and ksys_dup3() as helper functions allows us to avoid the in-kernel calls to the sys_dup() and sys_dup3() syscalls. The ksys_ prefix denotes that these functions are meant as a drop-in replacement for the syscalls. In particular, they use the same calling convention as sys_dup{,3}(). In the near future, the fs-external callers of ksys_dup{,3}() should be converted to call do_dup2() directly. Then, ksys_dup{,3}() can be moved within sys_dup{,3}() again. This patch is part of a series which removes in-kernel calls to syscalls. On this basis, the syscall entry path can be streamlined. For details, see http://lkml.kernel.org/r/[email protected] Cc: Alexander Viro <[email protected]> Signed-off-by: Dominik Brodowski <[email protected]>
Diffstat (limited to 'drivers/base/devtmpfs.c')
0 files changed, 0 insertions, 0 deletions