函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_opal_dev

函数原型:struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv)

返回类型:struct opal_dev

参数:

类型参数名称
void *data
sec_send_recv *send_recv
2145  dev等于开辟内存
2146  如果非dev则返回:NULL
2149  初始化链表头
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  如果check_opal_support(dev)不等于0则
2154  pr_debug("Opal is not supported on this device\n")
2155  释放内存
2156  返回:NULL
2159  返回:dev