Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\sed-opal.c Create Date:2022-07-28 18:13:04
Last Modify:2020-03-17 23:36:33 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:opal_unlock_from_suspend

Proto:bool opal_unlock_from_suspend(struct opal_dev *dev)

Type:bool

Parameter:

TypeParameterName
struct opal_dev *dev
2525  bool was_failure = false
2526  ret = 0
2528  If Not dev Then Return false
2531  If Not supported Then Return 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  If ret Then
2543  pr_debug("Failed to unlock LR %hhu with sum %d\n", lr, sum)
2546  was_failure = true
2549  If mbr_enabled Then
2550  ret = __opal_set_mbr_done(dev, & opal_key)
2551  If ret Then pr_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  Return was_failure