Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_opal_dev

Proto:struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv)

Type:struct opal_dev

Parameter:

TypeParameterName
void *data
sec_send_recv *send_recv
2145  dev = Allocation memory
2146  If Not dev Then Return NULL
2149  Initialization list head
2150  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & dev_lock)
2151  data = data
2152  send_recv = send_recv
2153  If check_opal_support(dev) != 0 Then
2154  pr_debug("Opal is not supported on this device\n")
2155  kfree(dev)
2156  Return NULL
2159  Return dev