函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-27 19:48:03
Last Modify:2020-03-17 23:36:33 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:opal_unlock_from_suspend

函数原型:bool opal_unlock_from_suspend(struct opal_dev *dev)

返回类型:bool

参数:

类型参数名称
struct opal_dev *dev
2525  bool was_failure = false
2526  ret等于0
2528  如果非dev则返回:false
2531  如果非supported则返回:false
2534  mutex_lock( & dev_lock)
2535  setup_opal_dev(dev)
2538  tsn等于0
2539  hsn等于0
2541  ret等于__opal_lock_unlock(dev, & unlk)
2542  如果ret
2543  pr_debug("Failed to unlock LR %hhu with sum %d\n", lr, sum)
2546  was_failure = true
2549  如果mbr_enabled
2550  ret等于__opal_set_mbr_done(dev, & opal_key)
2551  如果retpr_debug("Failed to set MBR Done in S3 resume\n")
2555  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
2557  返回:was_failure