int do_raw_read_trylock(rwlock_t *lock) { int ret = arch_read_trylock(&lock->raw_lock);
#ifndef CONFIG_SMP
/* * Must not happen on UP: */ RWLOCK_BUG_ON(!ret, lock, "trylock failure on UP");
#endif return ret; }
#ifdef CONFIG_DEBUG_SPINLOCK
(略) extern int do_raw_read_trylock(rwlock_t *lock); (略) #else
(略) # define do_raw_read_trylock(rwlock) arch_read_trylock(&(rwlock)->raw_lock)
(略) #endif