• Ingo Molnar's avatar
    [PATCH] x86 rwlock *_can_lock() primitives · f3fe94a1
    Ingo Molnar authored
    This introduces the following 3 new locking primitives:
    
      spin_can_lock(lock)
      read_can_lock(lock)
      write_can_lock(lock)
    
    which are a nonintrusive test to check whether the real (intrusive)
    trylock op would succeed or not.  Semantics and naming is completely
    symmetric to the trylock counterpart.
    
    Architectures that want to support PREEMPT will need to add these
    definitions.
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    f3fe94a1
spinlock.h 5.44 KB