函数逻辑报告 |
Source Code:block\bio.c |
Create Date:2022-07-27 18:30:26 |
Last Modify:2020-03-17 23:13:58 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__bio_add_pc_page - attempt to add page to passthrough bio*@q: the target queue*@bio: destination bio*@page: page to add*@len: vec entry length*@offset: vec entry offset*@same_page: return if the merge happen inside the same page
函数原型:static int __bio_add_pc_page(struct request_queue *q, struct bio *bio, struct page *page, unsigned int len, unsigned int offset, bool *same_page)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q | |
struct bio * | bio | |
struct page * | page | |
unsigned int | len | |
unsigned int | offset | |
bool * | same_page |
742 | 如果此条件成立可能性小(为编译器优化)(bio_flagged(bio, BIO_CLONED))则返回:0 |
745 | 如果 residual I/O count 加len右移9位大于queue_max_hw_sectors(q)则返回:0 |
748 | 如果 how many bio_vec's 大于0则 |
756 | bvec等于 the actual vec list [ how many bio_vec's - 1] |
764 | 如果 how many bio_vec's 大于等于queue_max_segments(q)则返回:0 |
767 | bvec等于 the actual vec list [ how many bio_vec's ] |
771 | how many bio_vec's 自加 |
772 | residual I/O count 加等于len |
773 | 返回:len |
名称 | 描述 |
---|---|
bio_add_pc_page | |
bio_map_user_iov | _map_user_iov - map user iovec into bio*@q: the struct request_queue for the bio*@iter: iovec iterator*@gfp_mask: memory allocation flags* Map the user space address into a bio suitable for io to a block* device. Returns an error pointer in case of error. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |