Function report |
Source Code:fs\sync.c |
Create Date:2022-07-28 20:11:44 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sync_file_range
Proto:int sync_file_range(struct file *file, loff_t offset, loff_t nbytes, unsigned int flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
loff_t | offset | |
loff_t | nbytes | |
unsigned int | flags |
246 | If flags & ~VALID_FLAGS Then Go to out |
258 | If size of The type of an index into the pagecache == 4 Then |
259 | If offset >= 0x100000000ULL << PAGE_SHIFT determines the page size Then |
267 | If endbyte >= 0x100000000ULL << PAGE_SHIFT determines the page size Then |
271 | nbytes = 0 |
277 | Else endbyte-- |
282 | If Not S_ISREG(i_mode) && Not S_ISBLK(i_mode) && Not S_ISDIR(i_mode) && Not S_ISLNK(i_mode) Then Go to out |
287 | ret = 0 |
288 | If flags & SYNC_FILE_RANGE_WAIT_BEFORE Then |
294 | If flags & SYNC_FILE_RANGE_WRITE Then |
297 | If (flags & SYNC_FILE_RANGE_WRITE_AND_WAIT) == SYNC_FILE_RANGE_WRITE_AND_WAIT Then sync_mode = Wait on every mapping |
310 | out : |
311 | Return ret |
Name | Describe |
---|---|
ksys_sync_file_range | ksys_sync_file_range() permits finely controlled syncing over a segment of* a file in the range offset |
io_sync_file_range_finish |
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 |