函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:17 |
| Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:lock_write_begin takes care of the basic task of block allocation and* bringing partial write blocks uptodate first.* The filesystem needs to handle block truncation upon failure.
函数原型:int block_write_begin(struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, get_block_t *get_block)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct address_space * | mapping | |
| loff_t | pos | |
| unsigned | len | |
| unsigned | flags | |
| struct page ** | pagep | |
| get_block_t * | get_block |
| 2109 | index等于pos右移PAGE_SHIFT determines the page size 位 |
| 2113 | page等于Find or create a page at the given pagecache position. Return the locked* page. This function is specifically for buffered writes. |
| 2118 | 如果此条件成立可能性小(为编译器优化)(status)则 |
| 2121 | page = NULL |
| 2125 | 返回:status |
| 名称 | 描述 |
|---|---|
| cont_write_begin | For moronic filesystems that do not allow holes in file.* We may have to extend the file. |
| blkdev_write_begin |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |