函数逻辑报告 |
Source Code:mm\filemap.c |
Create Date:2022-07-27 15:26:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__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
函数原型:ssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kiocb * | iocb | |
struct iov_iter * | from |
3378 | written等于0 |
3383 | backing_dev_info等于inode_to_bdi(inode) |
3384 | err等于file_remove_privs(file) |
3388 | err等于file_update_time(file) |
3392 | 如果ki_flags按位与IOCB_DIRECT则 |
3395 | written等于generic_file_direct_write(iocb, from) |
3414 | 如果此条件成立可能性小(为编译器优化)(status < 0)则 |
3425 | 如果err恒等于0则 |
3431 | 否则 |
3437 | 否则 |
3438 | written等于generic_perform_write(file, from, 文件偏移) |
3439 | 如果此条件成立可能性大(为编译器优化)(written > 0)则文件偏移加等于written |
3442 | out : |
3443 | backing_dev_info = NULL |
名称 | 描述 |
---|---|
generic_file_write_iter | generic_file_write_iter - write data to a file*@iocb: IO state structure*@from: iov_iter with data to write* This is a wrapper around __generic_file_write_iter() to be used by most* filesystems. It takes care of syncing the file in case of O_SYNC file |
blkdev_write_iter | Write data to the block device. Only intended for the block device itself* and the raw driver which basically is a fake block device.* Does not take i_mutex for the write and thus is not for general purpose* use. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |