函数逻辑报告 |
Source Code:block\blk-core.c |
Create Date:2022-07-27 18:35:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:generic_make_request_checks
函数原型:static __attribute__((__noinline__)) bool generic_make_request_checks(struct bio *bio)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct bio * | bio |
872 | nr_sectors等于bio_sectors(bio) |
873 | status等于BLK_STS_IOERR |
876 | might_sleep() |
879 | 如果此条件成立可能性小(为编译器优化)(!q)则 |
884 | 转到:end_io |
893 | status等于BLK_STS_AGAIN |
894 | 转到:end_io |
897 | 如果should_fail_bio(bio)则转到:end_io |
900 | 如果bi_partno则 |
903 | 否则 |
904 | 如果此条件成立可能性小(为编译器优化)(bio_check_ro(bio, & part0))则转到:end_io |
918 | 如果非nr_sectors则 |
919 | status等于BLK_STS_OK |
920 | 转到:end_io |
924 | 如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则 bottom bits req flags, * top bits REQ_OP. Use * accessors.与等于REQ_HIPRI的反 |
928 | 当:bio_op(bio)恒等于REQ_OP_DISCARD |
929 | 如果非blk_queue_discard(q)则转到:not_supported |
931 | 退出 |
932 | 当:bio_op(bio)恒等于REQ_OP_SECURE_ERASE |
933 | 如果非blk_queue_secure_erase(q)则转到:not_supported |
935 | 退出 |
936 | 当:bio_op(bio)恒等于REQ_OP_WRITE_SAME |
937 | 如果非max_write_same_sectors则转到:not_supported |
939 | 退出 |
940 | 当:bio_op(bio)恒等于REQ_OP_ZONE_RESET |
941 | 当:bio_op(bio)恒等于REQ_OP_ZONE_OPEN |
942 | 当:bio_op(bio)恒等于REQ_OP_ZONE_CLOSE |
943 | 当:bio_op(bio)恒等于REQ_OP_ZONE_FINISH |
944 | 如果非blk_queue_is_zoned(q)则转到:not_supported |
946 | 退出 |
947 | 当:bio_op(bio)恒等于REQ_OP_ZONE_RESET_ALL |
948 | 如果非blk_queue_is_zoned(q)或非blk_queue_zone_resetall(q)则转到:not_supported |
950 | 退出 |
951 | 当:bio_op(bio)恒等于REQ_OP_WRITE_ZEROES |
952 | 如果非max_write_zeroes_sectors则转到:not_supported |
954 | 退出 |
955 | 默认 |
956 | 退出 |
967 | 如果非blkcg_bio_issue_check(q, bio)则返回:false |
970 | 如果非bio_flagged(bio, BIO_TRACE_COMPLETION)则 |
977 | 返回:true |
979 | not_supported : |
980 | status等于BLK_STS_NOTSUPP |
981 | end_io : |
984 | 返回:false |
名称 | 描述 |
---|---|
generic_make_request | generic_make_request - hand a buffer to its device driver for I/O*@bio: The bio describing the location in memory and on the device.* generic_make_request() is used to make I/O requests of block* devices |
direct_make_request | direct_make_request - hand a buffer directly to its device driver for I/O*@bio: The bio describing the location in memory and on the device.* This function behaves like generic_make_request(), but does not protect* against recursion |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |