| Function report | 
| Source Code: mm\mincore.c | Create Date:2022-07-28 14:44:52 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:The mincore(2) system call
Proto:SYSCALL_DEFINE3(mincore, unsigned long, start, size_t, len, unsigned char __user *, vec)
Type:
Parameter:Nothing
| 270 | pages = len >> PAGE_SHIFT determines the page size | 
| 271 | pages += offset_in_page(len) != 0 | 
| 276 | tmp = __get_free_page(GFP_USER) | 
| 280 | retval = 0 | 
| 286 | lock for reading | 
| 287 | retval = Do a chunk of "sys_mincore()". We've already checked* all the arguments, we hold the mmap semaphore: we should* just return the amount of info we're asked for. | 
| 290 | If retval <= 0 Then Break | 
| 292 | If copy_to_user(vec, tmp, retval) Then | 
| 298 | start += retval << PAGE_SHIFT determines the page size | 
| 299 | retval = 0 | 
| 302 | Return retval | 
| 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 |