Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-28 14:50:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int init_admin_reserve(void)

Type:int

Parameter:Nothing

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 = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(free_kbytes / 32, 1UL << 13)
3674  Return 0
Caller
NameDescribe
reserve_mem_notifierReinititalise user and admin reserves if memory is added or removed