Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:opal_generic_read_write_table

Proto:static int opal_generic_read_write_table(struct opal_dev *dev, struct opal_read_write_table *rw_tbl)

Type:int

Parameter:

TypeParameterName
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  Case bit_set == OPAL_READ_TABLE
2606  ret = opal_read_table(dev, rw_tbl)
2607  Break
2608  Case bit_set == OPAL_WRITE_TABLE
2609  ret = opal_write_table(dev, rw_tbl)
2610  Break
2611  Default
2612  pr_debug("Invalid bit set in the flag (%016llx).\n", flags)
2614  ret = -EINVAL
2615  Break
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  Return ret
Caller
NameDescribe
sed_ioctl