kernels/linux-2.4.0/arch/i386/kernel/semaphore.c
/* Called when someone has done an up that transitioned from
 * negative to non-negative, meaning that the lock has been
 * granted to whomever owned the bias.
 */
Called when someone has done an up that transitioned from
negative to non-negative, meaning that the lock has been
granted to whomever owned the bias.
Called when someone has done an up that transitioned from negative to non - negative meaning that the lock has been granted to whomever owned the bias .
struct rw_semaphore *rwsem_wake_readers(struct rw_semaphore *sem)
{
	if (xchg(&sem->read_bias_granted, 1))
		BUG();
	wake_up(&sem->wait);
	return sem;
}
struct rw_semaphore * rwsem_wake_readers ( struct rw_semaphore * sem ) { if ( xchg ( & sem -> read_bias_granted , 1 ) ) BUG ( ) ; wake_up ( & sem -> wait ) ; return sem ; }
Called when someone has done an up that transitioned from
 negative to non-negative, meaning that the lock has been
 granted to whomever owned the bias.
Called when someone has done an up that transitioned from negative to non - negative meaning that the lock has been granted to whomever owned the bias .