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:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kallsyms_symbol_next* Parameters:* prefix_name prefix of a symbol name to lookup* flag 0 means search from the head, 1 means continue search.* buf_size maximum length that can be written to prefix_name* buffer* Returns:

Proto:int kallsyms_symbol_next(char *prefix_name, int flag, int buf_size)

Type:int

Parameter:

TypeParameterName
char *prefix_name
intflag
intbuf_size
232  prefix_len = strlen - Find the length of a string*@s: The string to be sized
236  If Not flag Then pos = 0
239  When name = kdb_walk_kallsyms( & pos) cycle
240  If Not strncmp(name, prefix_name, prefix_len) Then Return strscpy - Copy a C-string into a sized buffer*@dest: Where to copy the string to*@src: Where to copy the string from*@count: Size of destination buffer* Copy the string, or as much of it as fits, into the dest buffer. The
243  Return 0
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