函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\file_table.c Create Date:2022-07-29 10:31:56
Last Modify:2020-03-18 10:20:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:void __init files_maxfiles_init(void)

返回类型:void

参数:

393  nr_pages等于totalram_pages()
394  memreserve等于nr_pagesDefinition of global_zone_page_state not available yet ()的差乘3除2
396  memreserve等于两数取小(memreserve, nr_pages - 1)
397  n等于nr_pagesmemreserve的差乘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 )
调用者
名称描述
vfs_caches_init虚拟文件系统缓存初始化