函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:opal_discovery0_end

函数原型:static int opal_discovery0_end(struct opal_dev *dev)

返回类型:int

参数:

类型参数名称
struct opal_dev *dev
431  bool found_com_id = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., supported = true, single_user = false
432  hdr等于resp
433  epos等于resp, cpos等于resp
434  comid等于0
435  hlen等于be32_to_cpu(he length of the header 48 in 2.00.100 )
437  print_buffer(resp, hlen)
438  mbr_enabled = false
440  如果hlen大于IO_BUFFER_LENGTHhdr的长度则
441  pr_debug("Discovery length overflows buffer (%zu+%u)/%u\n", hdr的长度, hlen, IO_BUFFER_LENGTH)
443  返回:负EFAULT
446  epos加等于hlen
447  cpos加等于hdr的长度
449 cpos小于epossupported循环
450  body等于cpos
454  :be16_to_cpu(code)恒等于FC_TPER
456  退出
459  退出
460  :be16_to_cpu(code)恒等于FC_GEOMETRY
462  退出
463  :be16_to_cpu(code)恒等于FC_LOCKING
465  退出
466  :be16_to_cpu(code)恒等于FC_ENTERPRISE
467  :be16_to_cpu(code)恒等于FC_DATASTORE
469  pr_debug("Found OPAL feature description: %d\n", be16_to_cpu(code))
471  退出
472  :be16_to_cpu(code)恒等于FC_OPALV100
474  found_com_id = true
475  退出
476  :be16_to_cpu(code)恒等于FC_OPALV200
478  found_com_id = true
479  退出
480  :be16_to_cpu(code) == 0xbfff...0xffff
482  退出
483  默认
484  pr_debug("OPAL Unknown feature: %d\n", be16_to_cpu(code))
488  cpos加等于length加4
491  如果非supported
492  pr_debug("This device is not Opal enabled. Not Supported!\n")
493  返回:负EOPNOTSUPP
496  如果非single_userpr_debug("Device doesn't support single user mode\n")
500  如果非found_com_id
501  pr_debug("Could not find OPAL comid for device. Returning early\n")
502  返回:负EOPNOTSUPP
505  comid等于comid
507  返回:0
调用者
名称描述
opal_discovery0