函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rmat a string into buf[] which describes the _ddebug's flags

函数原型:static char *ddebug_describe_flags(struct _ddebug *dp, char *buf, size_t maxlen)

返回类型:char

参数:

类型参数名称
struct _ddebug *dp
char *buf
size_tmaxlen
94  p等于buf
97  BUG_ON(maxlen < 6)
98 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(opt_array)循环如果flags按位与flag
100  p自加等于opt_char
101  如果p恒等于bufp自加等于'_'
103  p等于'\0'
105  返回:buf
调用者
名称描述
ddebug_changeSearch the tables for _ddebug's which match the given `query' and* apply the `flags' and `mask' to them. Returns number of matching* callsites, normally the same as number of changes. If verbose,* logs the changes. Takes ddebug_lock.
ddebug_proc_showSeq_ops show method. Called several times within a read()* call from userspace, with ddebug_lock held. Formats the* current _ddebug as a single human-readable line, with a* special case for the header line.