Back to index

glibc  2.9
Defines | Typedefs | Functions
machine-lock.h File Reference

Go to the source code of this file.

Defines

#define __SPIN_LOCK_INITIALIZER   -1
#define _EXTERN_INLINE   extern __inline

Typedefs

typedef __volatile int
__spin_lock_t 
__attribute__ ((__aligned__(16)))

Functions

_EXTERN_INLINE void __spin_unlock (__spin_lock_t *__lock)
_EXTERN_INLINE int __spin_try_lock (__spin_lock_t *__lock)
_EXTERN_INLINE int __spin_lock_locked (__spin_lock_t *__lock)

Define Documentation

#define __SPIN_LOCK_INITIALIZER   -1

Definition at line 29 of file machine-lock.h.

#define _EXTERN_INLINE   extern __inline

Definition at line 33 of file machine-lock.h.


Typedef Documentation

typedef __volatile int __spin_lock_t __attribute__((__aligned__(16)))

Definition at line 25 of file machine-lock.h.


Function Documentation

Definition at line 57 of file machine-lock.h.

{
  return *__lock == 0;
}

Here is the caller graph for this function:

Definition at line 47 of file machine-lock.h.

{
  register int __result;
  __asm__ __volatile__ ("ldcws %0, %1" : "=m" (*__lock), "=r" (__result));
  return __result != 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 39 of file machine-lock.h.

{
  *__lock = -1;
}