Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:opal_reverttper

Proto:static int opal_reverttper(struct opal_dev *dev, struct opal_key *opal, bool psid)

Type:int

Parameter:

TypeParameterName
struct opal_dev *dev
struct opal_key *opal
boolpsid
2333  const struct opal_step revert_steps[] = {{start_SIDASP_opal_session, opal}, {revert_tper, }}
2337  const struct opal_step psid_revert_steps[] = {{start_PSID_opal_session, opal}, {revert_tper, }}
2344  mutex_lock( & dev_lock)
2345  setup_opal_dev(dev)
2346  If psid Then ret = execute_steps(dev, psid_revert_steps, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(psid_revert_steps))
2349  Else ret = execute_steps(dev, revert_steps, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(revert_steps))
2352  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.
2358  If Not ret Then clean_opal_dev(dev)
2361  Return ret
Caller
NameDescribe
sed_ioctl