函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:opal_generic_read_write_table

函数原型:static int opal_generic_read_write_table(struct opal_dev *dev, struct opal_read_write_table *rw_tbl)

返回类型:int

参数:

类型参数名称
struct opal_dev *dev
struct opal_read_write_table *rw_tbl
2600  mutex_lock( & dev_lock)
2601  setup_opal_dev(dev)
2603  bit_set等于ls64 - find last set bit in a 64-bit word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffsll, but returns the position of the most significant set bit减1
2605  :bit_set恒等于OPAL_READ_TABLE
2606  ret等于opal_read_table(dev, rw_tbl)
2607  退出
2608  :bit_set恒等于OPAL_WRITE_TABLE
2609  ret等于opal_write_table(dev, rw_tbl)
2610  退出
2611  默认
2612  pr_debug("Invalid bit set in the flag (%016llx).\n", flags)
2614  ret等于负EINVAL
2615  退出
2618  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.
2620  返回:ret
调用者
名称描述
sed_ioctl