Function report |
Source Code:mm\mmap.c |
Create Date:2022-07-28 14:50:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Reinititalise user and admin reserves if memory is added or removed
Proto:static int reserve_mem_notifier(struct notifier_block *nb, unsigned long action, void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct notifier_block * | nb | |
unsigned long | action | |
void * | data |
3702 | Case action == xposed to userspace |
3704 | tmp = sysctl_user_reserve_kbytes |
3709 | tmp = sysctl_admin_reserve_kbytes |
3713 | Break |
3714 | Case action == xposed to userspace |
3715 | free_kbytes = global_zone_page_state( First 128 byte cacheline (assuming 64 bit words) ) << PAGE_SHIFT determines the page size - 10 |
3717 | If sysctl_user_reserve_kbytes > free_kbytes Then |
3719 | pr_info("vm.user_reserve_kbytes reset to %lu\n", sysctl_user_reserve_kbytes) |
3723 | If sysctl_admin_reserve_kbytes > free_kbytes Then |
3725 | pr_info("vm.admin_reserve_kbytes reset to %lu\n", sysctl_admin_reserve_kbytes) |
3728 | Break |
3729 | Default |
3730 | Break |
3732 | Return Suits me |
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 |