Function report | 
Source Code:include\linux\pagemap.h | 
Create Date:2022-07-28 05:45:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:lock_page_or_retry - Lock the page, unless this would block and the* caller indicated that it can handle a retry.* Return value and mmap_sem implications depend on flags; see* __lock_page_or_retry().
Proto:static inline int lock_page_or_retry(struct page *page, struct mm_struct *mm, unsigned int flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| struct mm_struct * | mm | |
| unsigned int | flags | 
| 506 | might_sleep() | 
| 507 | Return Return true if the page was successfully locked || __lock_page_or_retry(page, mm, flags) | 
| Name | Describe | 
|---|---|
| do_swap_page | We enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases | 
| 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  |