函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kallsyms_symbol_complete* Parameters:* prefix_name prefix of a symbol name to lookup* max_len maximum length that can be returned* Returns:* Number of symbols which match the given prefix

函数原型:int kallsyms_symbol_complete(char *prefix_name, int max_len)

返回类型:int

参数:

类型参数名称
char *prefix_name
intmax_len
188  pos等于0
189  prefix_len等于strlen - Find the length of a string*@s: The string to be sized, prev_len等于0
190  number等于0
193 name等于kdb_walk_kallsyms( & pos)循环
194  如果字符串指定长度比较恒等于0则
197  如果number先自加恒等于1则
204 i小于prev_len循环
205  如果ks_namebuf[i]不等于ks_namebuf_prev[i]则
206  prev_len等于i
207  ks_namebuf_prev[i]等于'\0'
208  退出
213  如果prev_len大于prefix_len内存复制(prefix_name, ks_namebuf_prev, prev_len + 1)
215  返回:number
调用者
名称描述
kdb_readkdb_read* This function reads a string of characters, terminated by* a newline, or by reaching the end of the supplied buffer,* from the current kernel debugger console device.* Parameters:* Returns:* Returns a pointer to the buffer containing the received