函数逻辑报告 |
Source Code:kernel\locking\mutex.c |
Create Date:2022-07-27 10:47:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check the wound condition for the current lock acquire
函数原型:static inline int __sched __ww_mutex_check_kill(struct mutex *lock, struct mutex_waiter *waiter, struct ww_acquire_ctx *ctx)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mutex * | lock | |
struct mutex_waiter * | waiter | |
struct ww_acquire_ctx * | ctx |
812 | 如果acquired恒等于0则返回:0 |
815 | 如果非is_wait_die则 |
816 | 如果wounded则返回:__ww_mutex_kill(lock, ctx) |
819 | 返回:0 |
822 | 如果hold_ctx且Determine if context @a is 'after' context @b. IOW, @a is a younger* transaction than @b and depending on algorithm either needs to wait for*@b or die.则返回:__ww_mutex_kill(lock, ctx) |
831 | 如果非ww_ctx则继续下一循环 |
834 | 返回:__ww_mutex_kill(lock, ctx) |
837 | 返回:0 |
名称 | 描述 |
---|---|
__mutex_lock_common | Lock a mutex (possibly interruptible), slowpath: |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |