内核锁相关函数

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

互斥锁

1
2
3
mutex_init(struct mutex *lock);
mutex_lock(struct mutex *lock);
mutex_unlock(struct mutex *lock);

自旋锁

1
2
spin_lock(spinlock_t *lock);
spin_unlock(spinlock_t *lock);
words: 24 tags: kernel linux driver