static noinline int __sched __down_killable(struct semaphore *sem) { return __down_common(sem, TASK_KILLABLE, MAX_SCHEDULE_TIMEOUT); }
static noinline int __sched __down_timeout(struct semaphore *sem, long jiffies) { return __down_common(sem, TASK_UNINTERRUPTIBLE, jiffies); }
static noinline int __sched __down_interruptible(struct semaphore *sem) { return __down_common(sem, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT); }
static noinline void __sched __down(struct semaphore *sem) { __down_common(sem, TASK_UNINTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT); }
/* * This version waits in interruptible state so that the waiting * process can be killed. The down_failed_interruptible routine * returns negative for signalled and zero for semaphore acquired. */ extern int down_interruptible(struct semaphore * sem) { return __down_common(sem, 1); }
void down(struct semaphore * sem) { __down_common(sem, 0); }
static noinline int __sched __down_timeout_killable(struct semaphore *sem, long jiffies) { return __down_common(sem, TASK_KILLABLE, jiffies); }