Function report |
Source Code:mm\filemap.c |
Create Date:2022-07-28 14:02:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int generic_write_check_limits(struct file *file, loff_t pos, loff_t *count)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
loff_t | pos | |
loff_t * | count |
2909 | max_size = s_maxbytes |
2910 | limit = rlimit(RLIMIT_FSIZE) |
2912 | If limit != RLIM_INFINITY Then |
2914 | send_sig(SIGXFSZ, current process, 0) |
2915 | Return -EFBIG |
2920 | If Not (f_flags & O_LARGEFILE) Then max_size = MAX_NON_LFS |
2923 | If Value for the false possibility is greater at compile time(pos >= max_size) Then Return -EFBIG |
2926 | count = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value( * count, max_size - pos) |
2928 | Return 0 |
Name | Describe |
---|---|
generic_write_checks | 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. |
generic_remap_checks | Performs necessary checks before doing a clone.* Can adjust amount of bytes to clone via @req_count argument.* Returns appropriate error code that caller should return or* zero in case the clone should be allowed. |
generic_copy_file_checks | Performs necessary checks before doing a file copy* Can adjust amount of bytes to copy via @req_count argument.* Returns appropriate error code that caller should return or* zero in case the copy should be allowed. |
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 |