Function report |
Source Code:block\sed-opal.c |
Create Date:2022-07-28 18:12:07 |
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
Proto:static int lock_unlock_locking_range(struct opal_dev *dev, void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct opal_dev * | dev | |
void * | data |
1792 | read_locked = 1 , write_locked = 1 |
1793 | err = 0 |
1795 | If build_locking_range(lr_buffer, size of lr_buffer , lr) < 0 Then Return -ERANGE |
1810 | Break |
1811 | Default |
1812 | pr_debug("Tried to set an invalid locking state... returning to uland\n") |
1813 | Return OPAL_INVAL_PARAM |
1816 | err = cmd_start(dev, lr_buffer, TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_SET]) |
1818 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1819 | add_token_u8( & err, dev, OPAL_VALUES) |
1820 | add_token_u8( & err, dev, OPAL_STARTLIST) |
1822 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1823 | add_token_u8( & err, dev, OPAL_READLOCKED) |
1824 | add_token_u8( & err, dev, read_locked) |
1825 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1827 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1828 | add_token_u8( & err, dev, OPAL_WRITELOCKED) |
1829 | add_token_u8( & err, dev, write_locked) |
1830 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1832 | add_token_u8( & err, dev, OPAL_ENDLIST) |
1833 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1835 | If err Then |
1840 | 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 |