summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-12-14 03:16:52 -0800
committerJaroslav Kysela <perex@suse.cz>2002-12-14 03:16:52 -0800
commitf99a1a552f067b2352e2525ac72ddb499dd53ec4 (patch)
tree9808a54039941030abfddbb43dd58b904f7f7e28 /include/linux
parentc7d7f43ab105fd26d6b0dcaa70b2e9b5cfcaeb09 (diff)
[PATCH] semtimedop - semop() with a timeout
Patch from Mark Fasheh <mark.fasheh@oracle.com> (plus a few cleanups and a speedup from yours truly) Adds the semtimedop() function - semop with a timeout. Solaris has this. It's apparently worth a couple of percent to Oracle throughput and given the simplicity, that is sufficient benefit for inclusion IMO. This patch hooks up semtimedop() only for ia64 and ia32.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sem.h b/include/linux/sem.h
index 429e72a2eadd..1b869bf3aad9 100644
--- a/include/linux/sem.h
+++ b/include/linux/sem.h
@@ -140,6 +140,8 @@ struct sysv_sem {
asmlinkage long sys_semget (key_t key, int nsems, int semflg);
asmlinkage long sys_semop (int semid, struct sembuf *sops, unsigned nsops);
asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg);
+asmlinkage long sys_semtimedop(int semid, struct sembuf *sops,
+ unsigned nsops, const struct timespec *timeout);
#endif /* __KERNEL__ */