函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Initialise sysctl_admin_reserve_kbytes.* The purpose of sysctl_admin_reserve_kbytes is to allow the sys admin* to log in and kill a memory hogging process.* Systems with more than 256MB will reserve 8MB, enough to recover

函数原型:static int init_admin_reserve(void)

返回类型:int

参数:

3671  free_kbytes等于global_zone_page_state( First 128 byte cacheline (assuming 64 bit words) )左移PAGE_SHIFT determines the page size 减10位
3673  sysctl_admin_reserve_kbytes等于两数取小(free_kbytes / 32, 1UL << 13)
3674  返回:0
调用者
名称描述
reserve_mem_notifierReinititalise user and admin reserves if memory is added or removed