diff options
Diffstat (limited to 'include/linux/semaphore.h')
-rw-r--r-- | include/linux/semaphore.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/semaphore.h b/include/linux/semaphore.h index b3c691b089b2..88f2a28cc0f1 100644 --- a/include/linux/semaphore.h +++ b/include/linux/semaphore.h | |||
@@ -62,6 +62,12 @@ extern void down(struct semaphore *sem); | |||
62 | extern int __must_check down_interruptible(struct semaphore *sem); | 62 | extern int __must_check down_interruptible(struct semaphore *sem); |
63 | 63 | ||
64 | /* | 64 | /* |
65 | * As down_interruptible(), except the sleep may only be interrupted by | ||
66 | * signals which are fatal to this process. | ||
67 | */ | ||
68 | extern int __must_check down_killable(struct semaphore *sem); | ||
69 | |||
70 | /* | ||
65 | * As down(), except this function will not sleep. It will return 0 if it | 71 | * As down(), except this function will not sleep. It will return 0 if it |
66 | * acquired the semaphore and 1 if the semaphore was contended. This | 72 | * acquired the semaphore and 1 if the semaphore was contended. This |
67 | * function may be called from any context, including interrupt and softirq. | 73 | * function may be called from any context, including interrupt and softirq. |