函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dcache_init

函数原型:static void __init dcache_init(void)

返回类型:void

参数:

3170  dentry_cache等于To whitelist a single field for copying to/from usercopy, use this* macro instead for KMEM_CACHE() above.(dentry, Objects are reclaimable | Panic if kmem_cache_create() fails | Spread some memory over cpuset | SLAB_ACCOUNT, d_iname)
3175  如果非hashdist则返回
3178  dentry_hashtable等于allocate a large system hash table from bootmem* - it is assumed that the hash table must contain an exact power-of-2* quantity of entries* - limit is the number of hash buckets, not the total allocation size
3188  This is the single most critical data structure when it comes* to the dcache: the hashtable for lookups. Somebody should try* to make this good - I've just made it work.* This hash-function tries to avoid losing too many bits of hash等于32减This is the single most critical data structure when it comes* to the dcache: the hashtable for lookups. Somebody should try* to make this good - I've just made it work.* This hash-function tries to avoid losing too many bits of hash
调用者
名称描述
vfs_caches_init虚拟文件系统缓存初始化