Function report |
Source Code:mm\mlock.c |
Create Date:2022-07-28 14:45:52 |
Last Modify:2022-05-23 14:12:58 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_mlock
Proto:static __must_check int do_mlock(unsigned long start, size_t len, vm_flags_t flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | start | |
size_t | len | |
vm_flags_t | flags |
679 | If Not can_do_mlock() Then Return -EPERM |
685 | lock_limit = rlimit(RLIMIT_MEMLOCK) |
687 | locked = len >> PAGE_SHIFT determines the page size |
689 | If lock for writing Then Return -EINTR |
693 | If locked > lock_limit && Not Check operation authority Then |
705 | If locked <= lock_limit || Check operation authority Then error = apply_vma_lock_flags(start, len, flags) |
713 | If error Then Return vert get_user_pages() return value to posix mlock() error |
715 | Return 0 |
Name | Describe |
---|---|
SYSCALL_DEFINE2 | |
SYSCALL_DEFINE3 |
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 |