函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock_unlock_locking_range_sum

函数原型:static int lock_unlock_locking_range_sum(struct opal_dev *dev, void *data)

返回类型:int

参数:

类型参数名称
struct opal_dev *dev
void *data
1847  read_locked等于1, write_locked等于1
1848  lkul等于data
1851  clear_opal_cmd(dev)
1852  set_comid(dev, comid)
1854  如果build_locking_range(lr_buffer, lr_buffer的长度, lr)小于0则返回:负ERANGE
1859  :l_state恒等于 0001
1860  read_locked等于0
1861  write_locked等于1
1862  退出
1863  :l_state恒等于 0010
1864  read_locked等于0
1865  write_locked等于0
1866  退出
1867  :l_state恒等于 0100
1869  退出
1870  默认
1871  pr_debug("Tried to set an invalid locking state.\n")
1872  返回:OPAL_INVAL_PARAM
1874  ret等于generic_lr_enable_disable(dev, lr_buffer, 1, 1, read_locked, write_locked)
1877  如果ret小于0则
1878  pr_debug("Error building SET command.\n")
1879  返回:ret
1882  返回:finalize_and_send(dev, Parses and checks for errors )