函数逻辑报告 |
Source Code:fs\buffer.c |
Create Date:2022-07-29 10:45:20 |
Last Modify:2020-03-18 10:38:29 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:lock_page_mkwrite() is not allowed to change the file size as it gets* called from a page fault handler when a page is first dirtied
函数原型:int block_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf, get_block_t get_block)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
struct vm_fault * | vmf | |
get_block_t | get_block |
2511 | 转到:out_unlock |
2515 | 如果 Our offset within mapping. 加1左移PAGE_SHIFT determines the page size 位大于size则end等于size按位与PAGE_MASK的反 |
2520 | ret等于__block_write_begin(page, 0, end, get_block) |
2521 | 如果非ret则ret等于block_commit_write(page, 0, end) |
2524 | 如果此条件成立可能性小(为编译器优化)(ret < 0)则转到:out_unlock |
2526 | Dirty a page |
2528 | 返回:0 |
2529 | out_unlock : |
2531 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |