diff options
author | Pierre Peiffer <pierre.peiffer@bull.net> | 2008-04-29 10:00:47 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 17:06:13 +0200 |
commit | 8d4cc8b5c5e5bac526618ee704f3cfdcad954e0c (patch) | |
tree | 21258b10175f63703ace0a88402e513c6046d2d8 /kernel/rcutorture.c | |
parent | IPC/semaphores: code factorisation (diff) | |
download | linux-8d4cc8b5c5e5bac526618ee704f3cfdcad954e0c.tar.xz linux-8d4cc8b5c5e5bac526618ee704f3cfdcad954e0c.zip |
IPC/shared memory: introduce shmctl_down
Currently, the way the different commands are handled in sys_shmctl introduces
some duplicated code.
This patch introduces the shmctl_down function to handle all the 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 shared memory.
This removes some duplicated code for handling these both commands and
harmonizes the way they 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 'kernel/rcutorture.c')
0 files changed, 0 insertions, 0 deletions