函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mutex_trylock_recursive

函数原型:__must_check enum mutex_trylock_recursive_enum mutex_trylock_recursive(struct mutex *lock)

返回类型:enum mutex_trylock_recursive_enum

参数:

类型参数名称
struct mutex *lock
92  如果此条件成立可能性小(为编译器优化)(Internal helper function; C doesn't allow us to hide it :/* DO NOT USE (outside of mutex code). == 当前进程)则返回:MUTEX_TRYLOCK_RECURSIVE
95  返回:mutex_trylock - try to acquire the mutex, without waiting*@lock: the mutex to be acquired* Try to acquire the mutex atomically