aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorPierre Peiffer <pierre.peiffer@bull.net>2008-04-29 01:00:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-29 08:06:13 -0700
commita0d092fc2df845a43cc4847836818f49331d0a5c (patch)
treef47b94bfa2e18beadff39930c9386764e45bc4ec /include/linux/kernel.h
parentIPC/shared memory: introduce shmctl_down (diff)
downloadwireguard-linux-a0d092fc2df845a43cc4847836818f49331d0a5c.tar.xz
wireguard-linux-a0d092fc2df845a43cc4847836818f49331d0a5c.zip
IPC/message queues: introduce msgctl_down
Currently, sys_msgctl is not easy to read. This patch tries to improve that by introducing the msgctl_down function to handle all commands requiring the rwmutex to be taken in write mode (ie IPC_SET and IPC_RMID for now). It is the equivalent function of semctl_down for message queues. This greatly changes the readability of sys_msgctl and also harmonizes the way these commands are handled among all IPCs. Signed-off-by: Pierre Peiffer <pierre.peiffer@bull.net> Acked-by: Serge Hallyn <serue@us.ibm.com> Cc: Nadia Derbey <Nadia.Derbey@bull.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions