Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\cma_debug.c Create Date:2022-07-28 16:33:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cma_debugfs_add_one

Proto:static void cma_debugfs_add_one(struct cma *cma, struct dentry *root_dentry)

Type:void

Parameter:

TypeParameterName
struct cma *cma
struct dentry *root_dentry
169  scnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
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)
Caller
NameDescribe
cma_debugfs_init