Function report |
Source Code:mm\mmap.c |
Create Date:2022-07-28 14:48:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mlock_future_check
Proto:static inline int mlock_future_check(struct mm_struct *mm, unsigned long flags, unsigned long len)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mm_struct * | mm | |
| unsigned long | flags | |
| unsigned long | len |
| 1322 | locked = len >> PAGE_SHIFT determines the page size |
| 1323 | locked += Pages that have PG_mlocked set |
| 1324 | lock_limit = rlimit(RLIMIT_MEMLOCK) |
| 1326 | If locked > lock_limit && Not Check operation authority Then Return -EAGAIN |
| 1329 | Return 0 |
| Name | Describe |
|---|---|
| do_mmap | The caller must hold down_write(¤t->mm->mmap_sem). |
| do_brk_flags | his is really a simplified "do_mmap". it only handles* anonymous maps. eventually we may be able to do some* brk-specific accounting here. |
| 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 |