函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cma_debugfs_add_one

函数原型:static void cma_debugfs_add_one(struct cma *cma, struct dentry *root_dentry)

返回类型:void

参数:

类型参数名称
struct cma *cma
struct dentry *root_dentry
169  格式化输出字符串
171  tmp等于debugfs_create_dir(name, root_dentry)
173  debugfs_create_file("alloc", 0200, tmp, cma, & cma_alloc_fops)
174  debugfs_create_file("free", 0200, tmp, cma, & cma_free_fops)
175  debugfs_create_file("base_pfn", 0444, tmp, & base_pfn, & cma_debugfs_fops)
177  debugfs_create_file("count", 0444, tmp, & count, & cma_debugfs_fops)
178  debugfs_create_file("order_per_bit", 0444, tmp, & Order of pages represented by one bit , & cma_debugfs_fops)
180  debugfs_create_file("used", 0444, tmp, cma, & cma_used_fops)
181  debugfs_create_file("maxchunk", 0444, tmp, cma, & cma_maxchunk_fops)
183  u32s等于DIV_ROUND_UP(cma_bitmap_maxno(cma), BITS_PER_BYTE * sizeof(u32))
184  debugfs_create_u32_array("bitmap", 0444, tmp, (u32 * )bitmap, u32s)
调用者
名称描述
cma_debugfs_init