]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - ipc/syscall.c
ipc: add shmdt syscall wrapper
authorDominik Brodowski <linux@dominikbrodowski.net>
Tue, 20 Mar 2018 19:09:48 +0000 (20:09 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:15:25 +0000 (20:15 +0200)
commitda1e2744341542e404c172bcf6a321f509408b14
treee2404117362bb519750e1f18b4d513c1958fab1b
parent65749e0bb5e7de876ee43d3f601e32afe17e9248
ipc: add shmdt syscall wrapper

Provide ksys_shmdt() wrapper to avoid in-kernel calls to this 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_shmdt().

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: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
ipc/shm.c
ipc/syscall.c
ipc/util.h