函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:totalram_pages

函数原型:static inline unsigned long totalram_pages(void)

返回类型:unsigned long

参数:

55  返回:atomic_long_read( & _totalram_pages)
调用者
名称描述
set_max_threadsset_max_threads
hibernate_image_size_init
sanity_check_segment_list
constrained_allocDetermine the type of allocation constraint.
swap_setupPerform any setup for the swap system
vm_commit_limitCommitted memory limit enforced when OVERCOMMIT_NEVER policy is used
__vm_enough_memoryCheck that a process has enough memory to allocate a new virtual* mapping. 0 means there is enough memory for the allocation to* succeed and -ENOMEM implies there is not.* We currently support three overcommit policies, which are set via the* vm
workingset_init
vmapvmap - map an array of pages into virtually contiguous space*@pages: array of page pointers*@count: number of pages to map*@flags: vm_area->flags*@prot: page protection for the mapping* Maps @count pages from @pages into contiguous kernel virtual* space
__vmalloc_node_range__vmalloc_node_range - allocate virtually contiguous memory*@size: allocation size*@align: desired alignment*@start: vm area range start*@end: vm area range end*@gfp_mask: flags for the page level allocator*@prot: protection mask for the allocated pages
si_meminfo
mem_init_print_info
zswap_is_full
kmem_cache_init设置高速缓存
quarantine_reduce
hugepage_init
files_maxfiles_initOne file with associated inode and dcache is very roughly 1K. Per default* do not use more than 10% of our memory for files.