函数逻辑报告 |
Source Code:block\sed-opal.c |
Create Date:2022-07-27 19:45:14 |
Last Modify:2020-03-17 23:36:33 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:opal_discovery0_end
函数原型:static int opal_discovery0_end(struct opal_dev *dev)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct opal_dev * | dev |
431 | bool found_com_id = TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., supported = true, single_user = false |
434 | comid等于0 |
437 | print_buffer(resp, hlen) |
438 | mbr_enabled = false |
440 | 如果hlen大于IO_BUFFER_LENGTH减hdr的长度则 |
441 | pr_debug("Discovery length overflows buffer (%zu+%u)/%u\n", hdr的长度, hlen, IO_BUFFER_LENGTH) |
443 | 返回:负EFAULT |
454 | 当:be16_to_cpu(code)恒等于FC_TPER |
455 | supported等于check_tper(features) |
456 | 退出 |
457 | 当:be16_to_cpu(code)恒等于FC_SINGLEUSER |
458 | single_user等于check_sum(features) |
459 | 退出 |
460 | 当:be16_to_cpu(code)恒等于FC_GEOMETRY |
461 | check_geometry(dev, body) |
462 | 退出 |
463 | 当:be16_to_cpu(code)恒等于FC_LOCKING |
465 | 退出 |
466 | 当:be16_to_cpu(code)恒等于FC_ENTERPRISE |
467 | 当:be16_to_cpu(code)恒等于FC_DATASTORE |
469 | pr_debug("Found OPAL feature description: %d\n", be16_to_cpu(code)) |
471 | 退出 |
472 | 当:be16_to_cpu(code)恒等于FC_OPALV100 |
476 | 当:be16_to_cpu(code)恒等于FC_OPALV200 |
480 | 当:be16_to_cpu(code) == 0xbfff...0xffff |
482 | 退出 |
483 | 默认 |
484 | pr_debug("OPAL Unknown feature: %d\n", be16_to_cpu(code)) |
491 | 如果非supported则 |
492 | pr_debug("This device is not Opal enabled. Not Supported!\n") |
493 | 返回:负EOPNOTSUPP |
496 | 如果非single_user则pr_debug("Device doesn't support single user mode\n") |
500 | 如果非found_com_id则 |
501 | pr_debug("Could not find OPAL comid for device. Returning early\n") |
502 | 返回:负EOPNOTSUPP |
507 | 返回:0 |
名称 | 描述 |
---|---|
opal_discovery0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |