函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\util.c Create Date:2022-07-27 15:45:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:account_locked_vm - account locked pages to an mm's locked_vm*@mm: mm to account against, may be NULL*@pages: number of pages to account*@inc: %true if @pages should be considered positive, %false if not* Assumes a non-NULL @mm is valid (i

函数原型:int account_locked_vm(struct mm_struct *mm, unsigned long pages, bool inc)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
unsigned longpages
boolinc
481  如果pages恒等于0或非mm则返回:0
484  lock for writing
485  ret等于__account_locked_vm - account locked pages to an mm's locked_vm*@mm: mm to account against*@pages: number of pages to account*@inc: %true if @pages should be considered positive, %false if not*@task: task used to check RLIMIT_MEMLOCK*@bypass_rlim: %true
487  lease a write lock
489  返回:ret