diff options
author | Mark Rutland | 2018-07-11 15:56:50 +0200 |
---|---|---|
committer | Will Deacon | 2018-07-12 15:49:48 +0200 |
commit | bf1c77b4644f46d2986b7ca5e43e012f0fc8984b (patch) | |
tree | dc904b18b02cbab1c85d6bd336869837e410ffe3 /fs/statfs.c | |
parent | arm64: drop alignment from syscall tables (diff) | |
download | kernel-qcow2-linux-bf1c77b4644f46d2986b7ca5e43e012f0fc8984b.tar.gz kernel-qcow2-linux-bf1c77b4644f46d2986b7ca5e43e012f0fc8984b.tar.xz kernel-qcow2-linux-bf1c77b4644f46d2986b7ca5e43e012f0fc8984b.zip |
kernel: add ksys_personality()
Using this helper allows us to avoid the in-kernel call to the
sys_personality() 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_personality().
Since ksys_personality is trivial, it is implemented directly in
<linux/syscalls.h>, as we do for ksys_close() and friends.
This helper is necessary to enable conversion of arm64's syscall
handling to use pt_regs wrappers.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Dave Martin <dave.martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'fs/statfs.c')
0 files changed, 0 insertions, 0 deletions