Function report |
Source Code:block\sed-opal.c |
Create Date:2022-07-28 18:12:11 |
| Last Modify:2020-03-17 23:36:33 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lock_unlock_locking_range_sum
Proto:static int lock_unlock_locking_range_sum(struct opal_dev *dev, void *data)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct opal_dev * | dev | |
| void * | data |
| 1847 | read_locked = 1 , write_locked = 1 |
| 1851 | clear_opal_cmd(dev) |
| 1854 | If build_locking_range(lr_buffer, size of lr_buffer , lr) < 0 Then Return -ERANGE |
| 1869 | Break |
| 1870 | Default |
| 1871 | pr_debug("Tried to set an invalid locking state.\n") |
| 1872 | Return OPAL_INVAL_PARAM |
| 1874 | ret = generic_lr_enable_disable(dev, lr_buffer, 1, 1, read_locked, write_locked) |
| 1877 | If ret < 0 Then |
| 1882 | Return finalize_and_send(dev, Parses and checks for errors ) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |