函数逻辑报告 |
Source Code:block\bio.c |
Create Date:2022-07-27 18:31:27 |
| Last Modify:2020-03-17 23:13:58 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:_copy_kern - copy kernel address into bio*@q: the struct request_queue for the bio*@data: pointer to buffer to copy*@len: length in bytes*@gfp_mask: allocation flags for bio and page allocation*@reading: data direction is READ* copy the kernel address
函数原型:struct bio *bio_copy_kern(struct request_queue *q, void *data, unsigned int len, gfp_t gfp_mask, int reading)
返回类型:struct bio
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct request_queue * | q | |
| void * | data | |
| unsigned int | len | |
| gfp_t | gfp_mask | |
| int | reading |
| 1603 | end等于kaddr加len加PAGE_SIZE减1右移PAGE_SHIFT determines the page size 位 |
| 1607 | nr_pages等于0 |
| 1616 | bio等于bio_kmalloc(gfp_mask, nr_pages) |
| 1641 | 如果reading则 |
| 1643 | bi_private等于data |
| 1644 | 否则 |
| 1645 | bi_end_io等于bio_copy_kern_endio |
| 1648 | 返回:bio |
| 1650 | cleanup : |
| 1651 | bio_free_pages(bio) |
| 1653 | 返回:错误号 |
| 名称 | 描述 |
|---|---|
| blk_rq_map_kern | lk_rq_map_kern - map kernel data to a request, for passthrough requests*@q: request queue where request should be inserted*@rq: request to fill*@kbuf: the kernel buffer*@len: length of user data*@gfp_mask: memory allocation flags* Description: |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |