aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2018-03-13 16:34:04 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2018-04-02 14:16:02 -0400
commit454dab3f965ec24fda8fbe135c8dad4c5b238a86 (patch)
treeed786624d90375f37d0eedb1dae0a45b02fc3572 /include/linux/syscalls.h
parentbae217ea8c7e123ed3fb1064909a262924771bbb (diff)
fs: add ksys_getdents64() helper; remove in-kernel calls to sys_getdents64()
Using this helper allows us to avoid the in-kernel calls to the sys_getdents64() syscall. The ksys_ prefix denotes that this function is meant as a drop-in replacement for the syscall. In particular, it uses the same calling convention as sys_getdents64(). 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/20180325162527.GA17492@light.dominikbrodowski.net Cc: Alexander Viro <viro@zeniv.linux.org.uk> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index f9df17dcec1c..c056aff6d7ad 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -955,6 +955,8 @@ ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
955int ksys_chdir(const char __user *filename); 955int ksys_chdir(const char __user *filename);
956int ksys_fchmod(unsigned int fd, umode_t mode); 956int ksys_fchmod(unsigned int fd, umode_t mode);
957int ksys_fchown(unsigned int fd, uid_t user, gid_t group); 957int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
958int ksys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent,
959 unsigned int count);
958 960
959/* 961/*
960 * The following kernel syscall equivalents are just wrappers to fs-internal 962 * The following kernel syscall equivalents are just wrappers to fs-internal