Пример #1
0
static noinline int __sched __down_killable(struct semaphore *sem)
{
	return __down_common(sem, TASK_KILLABLE, MAX_SCHEDULE_TIMEOUT);
}
Пример #2
0
static noinline int __sched __down_timeout(struct semaphore *sem, long jiffies)
{
	return __down_common(sem, TASK_UNINTERRUPTIBLE, jiffies);
}
Пример #3
0
static noinline int __sched __down_interruptible(struct semaphore *sem)
{
	return __down_common(sem, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
}
Пример #4
0
static noinline void __sched __down(struct semaphore *sem)
{
	__down_common(sem, TASK_UNINTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
}
Пример #5
0
/*
 * 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); 
}
Пример #6
0
void down(struct semaphore * sem)
{
	__down_common(sem, 0);
}
Пример #7
0
static noinline int __sched __down_timeout_killable(struct semaphore *sem, long jiffies)
{
	return __down_common(sem, TASK_KILLABLE, jiffies);
}