Exemplo n.º 1
0
static noinline int __sched __down_killable(struct semaphore *sem)
{
	return __down_common(sem, TASK_KILLABLE, MAX_SCHEDULE_TIMEOUT);
}
Exemplo n.º 2
0
static noinline int __sched __down_timeout(struct semaphore *sem, long jiffies)
{
	return __down_common(sem, TASK_UNINTERRUPTIBLE, jiffies);
}
Exemplo n.º 3
0
static noinline int __sched __down_interruptible(struct semaphore *sem)
{
	return __down_common(sem, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
}
Exemplo n.º 4
0
static noinline void __sched __down(struct semaphore *sem)
{
	__down_common(sem, TASK_UNINTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);
}
Exemplo n.º 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); 
}
Exemplo n.º 6
0
void down(struct semaphore * sem)
{
	__down_common(sem, 0);
}
Exemplo n.º 7
0
static noinline int __sched __down_timeout_killable(struct semaphore *sem, long jiffies)
{
	return __down_common(sem, TASK_KILLABLE, jiffies);
}