Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_support.c Create Date:2022-07-28 11:43:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int kallsyms_symbol_complete(char *prefix_name, int max_len)

Type:int

Parameter:

TypeParameterName
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  When name = kdb_walk_kallsyms( & pos) cycle
194  If strncmp(name, prefix_name, prefix_len) == 0 Then
197  If ++number == 1 Then
204  When i < prev_len cycle
205  If ks_namebuf[i] != ks_namebuf_prev[i] Then
206  prev_len = i
207  ks_namebuf_prev[i] = '\0'
208  Break
213  If prev_len > prefix_len Then No 3D Now!(prefix_name, ks_namebuf_prev, prev_len + 1)
215  Return number
Caller
NameDescribe
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