函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mlock.c Create Date:2022-07-27 16:13:43
Last Modify:2022-05-23 14:12:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:SYSCALL_DEFINE1

函数原型:SYSCALL_DEFINE1(mlockall, int, flags)

返回类型:

参数:

804  如果非flagsflags按位与lock all current mappings 按位或lock all future mappings 按位或lock all pages that are faulted in 的值的反或flags恒等于lock all pages that are faulted in 则返回:负EINVAL
808  如果非can_do_mlock()则返回:负EPERM
811  lock_limit等于rlimit(RLIMIT_MEMLOCK)
812  lock_limit右移等于PAGE_SHIFT determines the page size
814  如果lock for writing则返回:负EINTR
817  ret等于负ENOMEM
818  如果非flags按位与lock all current mappings 的值或total_vm小于等于lock_limit操作权限检查ret等于Take the MCL_* flags passed into mlockall (or 0 if called from munlockall)* and translate into the appropriate modifications to mm->def_flags and/or the* flags for all current VMAs.* There are a couple of subtleties with this
821  lease a write lock
822  如果非retflags按位与lock all current mappings mm_populate(0, TASK_SIZE)
825  返回:ret