函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\mutex.c Create Date:2022-07-27 10:47:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__ww_mutex_kill

函数原型:static __always_inline int __sched __ww_mutex_kill(struct mutex *lock, struct ww_acquire_ctx *ww_ctx)

返回类型:int

参数:

类型参数名称
struct mutex *lock
struct ww_acquire_ctx *ww_ctx
778  如果acquired大于0则
786  返回:负EDEADLK
789  返回:0
调用者
名称描述
__ww_mutex_check_killCheck the wound condition for the current lock acquire
__ww_mutex_add_waiterAdd @waiter to the wait-list, keep the wait-list ordered by stamp, smallest* first