函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\dquot.c Create Date:2022-07-29 11:09:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dquot_init

函数原型:static int __init dquot_init(void)

返回类型:int

参数:

2951  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
2953  注册sysctl
2955  SLAB cache for dquot structures 等于创建高速缓存区
2961  order等于0
2962  dquot_hash等于Common helper functions. Never use with __GFP_HIGHMEM because the returned* address cannot represent highmem pages. Use alloc_pages and then kmap if* you need to access high mem.
2963  如果非dquot_hashpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2966 i小于_DQST_DQSTAT_LAST循环
2967  ret等于percpu_counter_init( & counter[i], 0, GFP_KERNEL)
2968  如果retpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2973  nr_hash等于1UL左移order位的值乘PAGE_SIZEsizeof(structhlist_head)
2974  dq_hash_bits等于log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (nr_hash)
2976  nr_hash等于1UL左移dq_hash_bits
2977  dq_hash_mask等于nr_hash减1
2978 i小于nr_hash循环INIT_HLIST_HEAD(dquot_hash + i)
2981  打印信息("VFS: Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n", nr_hash, order, (PAGE_SIZE << order))
2984  如果register_shrinker( & dqcache_shrinker)则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2987  返回:0