UbixOS
2.0
|
#include <sys/types.h>
Go to the source code of this file.
Data Structures | |
struct | spinLock |
Macros | |
#define | LLOCK_FLAG 1 |
#define | LOCKED 1 |
#define | SPIN_LOCK_INITIALIZER {NULL, 0} |
#define | UNLOCKED 0 |
Typedefs | |
typedef struct spinLock * | spinLock_t |
Functions | |
void | spinLock (spinLock_t) |
void | spinLock_scheduler (spinLock_t *) |
void | spinLockInit (spinLock_t) |
int | spinLockLocked (spinLock_t *) |
int | spinTryLock (spinLock_t) |
void | spinUnlock (spinLock_t) |
Variables | |
struct spinLock | Master |
#define LLOCK_FLAG 1 |
Definition at line 37 of file spinlock.h.
#define LOCKED 1 |
Definition at line 34 of file spinlock.h.
#define SPIN_LOCK_INITIALIZER {NULL, 0} |
Definition at line 36 of file spinlock.h.
#define UNLOCKED 0 |
Definition at line 35 of file spinlock.h.
typedef struct spinLock* spinLock_t |
Definition at line 46 of file spinlock.h.
void spinLock | ( | spinLock_t | ) |
Definition at line 64 of file spinlock.c.
void spinLock_scheduler | ( | spinLock_t * | ) |
Definition at line 63 of file spinlock.c.
References spinTryLock().
void spinLockInit | ( | spinLock_t | ) |
Definition at line 47 of file spinlock.c.
References memset().
int spinLockLocked | ( | spinLock_t * | ) |
Definition at line 69 of file spinlock.c.
Referenced by c_ap_boot().
int spinTryLock | ( | spinLock_t | ) |
Definition at line 51 of file spinlock.c.
References cmpxchg, LLOCK_FLAG, LOCKED, spinLock::locked, and NULL.
void spinUnlock | ( | spinLock_t | ) |
Definition at line 59 of file spinlock.c.
References barrier, and spinLock::locked.
struct spinLock Master |
Definition at line 40 of file syscall_posix.c.