Function report |
Source Code:block\sed-opal.c |
Create Date:2022-07-28 18:11:16 |
Last Modify:2020-03-17 23:36:33 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:generic_table_write_data
Proto:static int generic_table_write_data(struct opal_dev *dev, const u64 data, u64 offset, u64 size, const u8 *uid)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct opal_dev * | dev | |
const u64 | data | |
u64 | offset | |
u64 | size | |
const u8 * | uid |
1232 | off = 0 |
1236 | err = see TCG SAS 5.3.2.3 for a description of the available columns* the result is provided in dev->resp->tok[4] |
1237 | If err Then |
1242 | len = response_get_u64( & parsed, 4) |
1246 | Return -ENOSPC |
1251 | err = cmd_start(dev, uid, TCG Storage SSC Methods.* Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00* Section: 6.3 Assigned UIDs[OPAL_SET]) |
1252 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1253 | add_token_u8( & err, dev, OPAL_WHERE) |
1254 | add_token_u64( & err, dev, offset + off) |
1255 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1257 | add_token_u8( & err, dev, OPAL_STARTNAME) |
1258 | add_token_u8( & err, dev, OPAL_VALUES) |
1270 | dst = add_bytestring_header( & err, dev, len) |
1271 | If Not dst Then Break |
1274 | If copy_from_user(dst, src + off, len) Then |
1281 | add_token_u8( & err, dev, OPAL_ENDNAME) |
1282 | If err Then Break |
1285 | err = finalize_and_send(dev, Parses and checks for errors ) |
1286 | If err Then Break |
1292 | Return err |
Name | Describe |
---|---|
write_shadow_mbr | |
write_table_data |
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 |