函数逻辑报告 |
Source Code:kernel\locking\mutex.c |
Create Date:2022-07-27 10:47:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Give up ownership to a specific task, when @task = NULL, this is equivalent* to a regular unlock. Sets PICKUP on a handoff, clears HANDOF, preserves* WAITERS. Provides RELEASE semantics like a regular unlock, the
函数原型:static void __mutex_handoff(struct mutex *lock, struct task_struct *task)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mutex * | lock | |
struct task_struct * | task |
226 | owner等于atomic_long_read( & owner) |
228 | 循环 |
238 | 如果task则new或等于MUTEX_FLAG_PICKUP |
241 | old等于atomic_long_cmpxchg_release( & owner, owner, new) |
名称 | 描述 |
---|---|
__mutex_unlock_slowpath |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |