550W Document
550W, a high-end OS
|
#include <lib/list.h>
类 | |
struct | spin_lock |
struct | double_spin_lock |
struct | mutex_lock |
struct | sleep_lock |
宏定义 | |
#define | LOCK_NUM 32 |
类型定义 | |
typedef struct spin_lock | spin_lock_t |
typedef struct double_spin_lock | double_spin_lock_t |
typedef struct mutex_lock | mutex_lock_t |
typedef struct sleep_lock | sleep_lock_t |
枚举 | |
enum | lock_status_t { UNLOCKED , LOCKED } |
enum | guard_status_t { UNGUARDED , GUARDED } |
函数 | |
void | k_spin_lock_init (spin_lock_t *lock) |
int | k_spin_lock_try_acquire (spin_lock_t *lock) |
void | k_spin_lock_acquire (spin_lock_t *lock) |
void | k_spin_lock_release (spin_lock_t *lock) |
void | k_schedule_with_spin_lock (spin_lock_t *lock) |
long | k_mutex_lock_op (int *key, int op) |
long | k_mutex_lock_init (int *key) |
long | k_mutex_lock_acquire (int key) |
long | k_mutex_lock_release (int key) |
long | k_mutex_lock_destroy (int *key) |
long | k_mutex_lock_trylock (int *key) |
void | k_sleep_lock_init (sleep_lock_t *lk) |
void | k_sleep_lock_acquire (sleep_lock_t *lk) |
void | k_sleep_lock_release (sleep_lock_t *lk) |
int | k_sleep_lock_hold (sleep_lock_t *lk) |
#define LOCK_NUM 32 |
typedef struct double_spin_lock double_spin_lock_t |
typedef struct mutex_lock mutex_lock_t |
typedef struct sleep_lock sleep_lock_t |
typedef struct spin_lock spin_lock_t |
enum guard_status_t |
enum lock_status_t |
long k_mutex_lock_acquire | ( | int | key | ) |
long k_mutex_lock_destroy | ( | int * | key | ) |
long k_mutex_lock_init | ( | int * | key | ) |
long k_mutex_lock_op | ( | int * | key, |
int | op | ||
) |
long k_mutex_lock_release | ( | int | key | ) |
long k_mutex_lock_trylock | ( | int * | key | ) |
void k_schedule_with_spin_lock | ( | spin_lock_t * | lock | ) |
void k_sleep_lock_acquire | ( | sleep_lock_t * | lk | ) |
int k_sleep_lock_hold | ( | sleep_lock_t * | lk | ) |
void k_sleep_lock_init | ( | sleep_lock_t * | lk | ) |
void k_sleep_lock_release | ( | sleep_lock_t * | lk | ) |
void k_spin_lock_acquire | ( | spin_lock_t * | lock | ) |
void k_spin_lock_init | ( | spin_lock_t * | lock | ) |
void k_spin_lock_release | ( | spin_lock_t * | lock | ) |
int k_spin_lock_try_acquire | ( | spin_lock_t * | lock | ) |