Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:02:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Performs necessary checks before doing a write* Can adjust writing position or amount of bytes to write.* Returns appropriate error code that caller should return or* zero in case that write should be allowed.
Proto:inline ssize_t generic_write_checks(struct kiocb *iocb, struct iov_iter *from)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kiocb * | iocb | |
struct iov_iter * | from |
2945 | If IS_SWAPFILE(inode) Then Return -ETXTBSY |
2948 | If Not iov_iter_count(from) Then Return 0 |
2955 | If ki_flags & IOCB_NOWAIT && Not (ki_flags & IOCB_DIRECT) Then Return -EINVAL |
2958 | count = iov_iter_count(from) |
2959 | ret = Don't operate on ranges the page cache doesn't support, and don't exceed the* LFS limits. If pos is under the limit it becomes a short access. If it* exceeds the limit we return -EFBIG. |
2964 | Return iov_iter_count(from) |
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 |