Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:03:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__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
Proto:ssize_t __generic_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If ki_flags & IOCB_DIRECT Then |
3395 | written = generic_file_direct_write(iocb, from) |
3406 | status = generic_perform_write(file, from, pos = The 'ki_filp' pointer is shared in a union for aio ) |
3414 | If Value for the false possibility is greater at compile time(status < 0) Then |
3425 | If err == 0 Then |
3431 | Else |
3437 | Else |
3442 | out : |
3443 | backing_dev_info = NULL |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |