https://mp.weixin.qq.com/s/27AS_0EiMKrAENb5w--Lzg
简单介绍Linux kernel中riscv架构相关锁的实现。
本文目录
1. arch_spinlock_t
2. arch_spin_is_locked
3. arch_spin_unlock
4. arch_spin_trylock
5. arch_spin_lock
6. arch_read_lock
7. arch_write_lock
8. arch_read_trylock
9. arch_write_trylock
10. arch_read_unlock
11. arch_write_unlock
以下正文:
1. arch_spinlock_t
arch_spinlock_t是代表自旋锁的数据结构:
-----------------------------------------------------------------------------
这是一篇付费文章,请移步付费阅读全文,谢谢!
文章链接:https://mp.weixin.qq.com/s/27AS_0EiMKrAENb5w--Lzg