Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\842\842_debugfs.h Create Date:2022-07-28 06:57:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sw842_debugfs_create

Proto:static int __init sw842_debugfs_create(void)

Type:int

Parameter:Nothing

18  m = S_IRUGO | S_IWUSR
21  If Not debugfs_initialized() Then Return -ENODEV
24  sw842_debugfs_root = debugfs_create_dir(MODULE_NAME, NULL)
26  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(template_count) cycle
29  snprintf - 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*@
30  debugfs_create_atomic_t(name, m, sw842_debugfs_root, & template_count[i])
33  debugfs_create_atomic_t("template_repeat", m, sw842_debugfs_root, & template_repeat_count)
35  debugfs_create_atomic_t("template_zeros", m, sw842_debugfs_root, & template_zeros_count)
37  debugfs_create_atomic_t("template_short_data", m, sw842_debugfs_root, & template_short_data_count)
39  debugfs_create_atomic_t("template_end", m, sw842_debugfs_root, & template_end_count)
42  Return 0
Caller
NameDescribe
sw842_init
sw842_init