内核锁相关函数

2021-02-01, updated 2021-09-12

互斥锁

mutex_init(struct mutex *lock);
mutex_lock(struct mutex *lock);
mutex_unlock(struct mutex *lock);

自旋锁

spin_lock(spinlock_t *lock);
spin_unlock(spinlock_t *lock);
words: 19 tags: kernel linux driver