aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPierre Peiffer <[email protected]>2008-04-29 01:00:47 -0700
committerLinus Torvalds <[email protected]>2008-04-29 08:06:13 -0700
commit8d4cc8b5c5e5bac526618ee704f3cfdcad954e0c (patch)
tree21258b10175f63703ace0a88402e513c6046d2d8 /tools/perf/scripts/python
parent6ff3797218ef41c248c83184101ce1aedc227333 (diff)
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 <[email protected]> Acked-by: Serge Hallyn <[email protected]> Cc: Nadia Derbey <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions