函数逻辑报告 |
Source Code:kernel\locking\mcs_spinlock.h |
Create Date:2022-07-27 10:51:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Releases the lock. The caller should pass in the corresponding node that* was used to acquire the lock.
函数原型:static inline void mcs_spin_unlock(struct mcs_spinlock **lock, struct mcs_spinlock *node)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct mcs_spinlock ** | lock | |
| struct mcs_spinlock * | node |
| 106 | 如果此条件成立可能性大(为编译器优化)(!next)则 |
| 110 | 如果此条件成立可能性大(为编译器优化)(cmpxchg_release(lock, node, NULL) == node)则返回 |
| 114 | cpu_relax() |
| 118 | smp_store_release() provides a memory barrier to ensure all* operations in the critical section has been completed before* unlocking.( & 1 if lock acquired ) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |