函数逻辑报告 |
Source Code:mm\filemap.c |
Create Date:2022-07-27 15:26:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:generic_file_direct_write
函数原型:ssize_t generic_file_direct_write(struct kiocb *iocb, struct iov_iter *from)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kiocb * | iocb | |
struct iov_iter * | from |
3175 | write_len等于iov_iter_count(from) |
3176 | end等于pos加write_len减1右移PAGE_SHIFT determines the page size 位 |
3178 | 如果ki_flags按位与IOCB_NOWAIT则 |
3183 | 否则 |
3202 | 如果written则 |
3231 | 如果written大于0则 |
3236 | mark_inode_dirty(inode) |
3240 | iov_iter_revert(from, write_len - iov_iter_count(from)) |
3241 | out : |
3242 | 返回:written |
名称 | 描述 |
---|---|
__generic_file_write_iter | __generic_file_write_iter - write data to a file*@iocb: IO state structure (file, offset, etc.)*@from: iov_iter with data to write* This function does all the work needed for actually writing data to a* file |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |