Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\file_table.c Create Date:2022-07-28 20:01:53
Last Modify:2020-03-18 10:20:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:One file with associated inode and dcache is very roughly 1K. Per default* do not use more than 10% of our memory for files.

Proto:void __init files_maxfiles_init(void)

Type:void

Parameter:Nothing

393  nr_pages = totalram_pages()
394  memreserve = (nr_pages - Definition of global_zone_page_state not available yet ()) * 3 / 2
396  memreserve = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(memreserve, nr_pages - 1)
397  n = (nr_pages - memreserve) * PAGE_SIZE / 1024 / 10
399  unable = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedlong, n, his can well be larger on a larger system )
Caller
NameDescribe
vfs_caches_init