函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\mutex-debug.c Create Date:2022-07-27 10:49:11
Last Modify:2022-05-22 15:17:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mutex_remove_waiter

函数原型:void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, struct task_struct *task)

返回类型:void

参数:

类型参数名称
struct mutex *lock
struct mutex_waiter *waiter
struct task_struct *task
64  DEBUG_LOCKS_WARN_ON(链表为空)
65  DEBUG_LOCKS_WARN_ON(task != task)
66  DEBUG_LOCKS_WARN_ON(blocked_on != waiter)
67  blocked_on = NULL
69  删除链表项并重新初始化
70  task = NULL
调用者
名称描述
__mutex_lock_commonLock a mutex (possibly interruptible), slowpath: